Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68fc68f2 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

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: default avatarHannes Reinecke <hare@suse.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 8295a69b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;