]> granicus.if.org Git - zfs/commitdiff
Avoid 'queue not locked' warning at pool import.
authorBoris Protopopov <boris.protopopov@actifio.com>
Wed, 14 Jun 2017 20:18:36 +0000 (16:18 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 15 Jun 2017 18:16:19 +0000 (11:16 -0700)
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

module/zfs/zvol.c

index 7730c28c62767f1ff4daeba79ec2a3f158cfcd29..8890aaaf78a3aaa42aedd5d2f137dcc73e408e39 100644 (file)
@@ -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)