mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
Avoid 'queue not locked' warning at pool import.
Use queue_flag_set_unlocked() in zvol_alloc(). Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Boris Protopopov <boris.protopopov@actifio.com> Issue #6226
This commit is contained in:
parent
97f8d7961e
commit
ef4be34a64
@ -1527,7 +1527,7 @@ zvol_alloc(dev_t dev, const char *name)
|
||||
blk_queue_set_read_ahead(zv->zv_queue, 1);
|
||||
|
||||
/* Disable write merging in favor of the ZIO pipeline. */
|
||||
queue_flag_set(QUEUE_FLAG_NOMERGES, zv->zv_queue);
|
||||
queue_flag_set_unlocked(QUEUE_FLAG_NOMERGES, zv->zv_queue);
|
||||
|
||||
zv->zv_disk = alloc_disk(ZVOL_MINORS);
|
||||
if (zv->zv_disk == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user