diff options
author | Christoph Hellwig <hch@lst.de> | 2020-07-01 10:59:31 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-07-01 07:27:23 -0600 |
commit | 6bbae86056f1b7da0fb91450d3593dbce728e5f8 (patch) | |
tree | b5610f074a5ee16bbad54e2ec55e8592fe8116e1 /drivers/block | |
parent | 84bc83c3baf28c0afda78db2cb721be64c2eb238 (diff) | |
download | linux-stable-6bbae86056f1b7da0fb91450d3593dbce728e5f8.tar.gz linux-stable-6bbae86056f1b7da0fb91450d3593dbce728e5f8.tar.bz2 linux-stable-6bbae86056f1b7da0fb91450d3593dbce728e5f8.zip |
null_blk: stop using ->queuedata for bio mode
Instead of setting up the queuedata as well just use one private data
field.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/null_blk_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/null_blk_main.c b/drivers/block/null_blk_main.c index 82259242b9b5..93ce0a00b2ae 100644 --- a/drivers/block/null_blk_main.c +++ b/drivers/block/null_blk_main.c @@ -1392,7 +1392,7 @@ static blk_qc_t null_queue_bio(struct request_queue *q, struct bio *bio) { sector_t sector = bio->bi_iter.bi_sector; sector_t nr_sectors = bio_sectors(bio); - struct nullb *nullb = q->queuedata; + struct nullb *nullb = bio->bi_disk->private_data; struct nullb_queue *nq = nullb_to_queue(nullb); struct nullb_cmd *cmd; |