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:
Boris Protopopov 2017-06-14 16:18:36 -04:00 committed by Brian Behlendorf
parent 97f8d7961e
commit ef4be34a64
1 changed files with 1 additions and 1 deletions

View File

@ -1527,7 +1527,7 @@ zvol_alloc(dev_t dev, const char *name)
blk_queue_set_read_ahead(zv->zv_queue, 1); blk_queue_set_read_ahead(zv->zv_queue, 1);
/* Disable write merging in favor of the ZIO pipeline. */ /* 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); zv->zv_disk = alloc_disk(ZVOL_MINORS);
if (zv->zv_disk == NULL) if (zv->zv_disk == NULL)