Skip to content

Commit

Permalink
umem: stop using ->queuedata
Browse files Browse the repository at this point in the history
Instead of setting up the queuedata as well just use one private data
field.

Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Christoph Hellwig authored and axboe committed Jul 1, 2020
1 parent a2f143f commit 6c2eddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/block/umem.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,8 @@ static int mm_check_plugged(struct cardinfo *card)

static blk_qc_t mm_make_request(struct request_queue *q, struct bio *bio)
{
struct cardinfo *card = q->queuedata;
struct cardinfo *card = bio->bi_disk->private_data;

pr_debug("mm_make_request %llu %u\n",
(unsigned long long)bio->bi_iter.bi_sector,
bio->bi_iter.bi_size);
Expand Down Expand Up @@ -888,7 +889,6 @@ static int mm_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
card->queue = blk_alloc_queue(mm_make_request, NUMA_NO_NODE);
if (!card->queue)
goto failed_alloc;
card->queue->queuedata = card;

tasklet_init(&card->tasklet, process_page, (unsigned long)card);

Expand Down

0 comments on commit 6c2eddd

Please sign in to comment.