umem: don't override the queue_lock
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Nov 2018 16:02:15 +0000 (17:02 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 15 Nov 2018 19:13:31 +0000 (12:13 -0700)
The umem card->lock and the block layer queue_lock are used for entirely
different resources.  Stop using card->lock as the block layer
queue_lock.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/umem.c

index be3e3ab799505d09b13c89ddf33c86c22cd839ec..8a27b5adc2b38457f4ad427a2da6b9fed0135211 100644 (file)
@@ -888,8 +888,7 @@ static int mm_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
        card->biotail = &card->bio;
        spin_lock_init(&card->lock);
 
-       card->queue = blk_alloc_queue_node(GFP_KERNEL, NUMA_NO_NODE,
-                                          &card->lock);
+       card->queue = blk_alloc_queue_node(GFP_KERNEL, NUMA_NO_NODE, NULL);
        if (!card->queue)
                goto failed_alloc;