Skip to content

Commit 68fc68f

Browse files
Christoph Hellwigaxboe
authored andcommitted
umem: don't override the queue_lock
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>
1 parent 8295a69 commit 68fc68f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/block/umem.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -888,8 +888,7 @@ static int mm_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
888888
card->biotail = &card->bio;
889889
spin_lock_init(&card->lock);
890890

891-
card->queue = blk_alloc_queue_node(GFP_KERNEL, NUMA_NO_NODE,
892-
&card->lock);
891+
card->queue = blk_alloc_queue_node(GFP_KERNEL, NUMA_NO_NODE, NULL);
893892
if (!card->queue)
894893
goto failed_alloc;
895894

0 commit comments

Comments
 (0)