summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJeffle Xu <jefflexu@linux.alibaba.com>2021-04-01 04:19:25 +0200
committerJens Axboe <axboe@kernel.dk>2021-04-12 14:51:57 +0200
commit907d52310024fae6632aabfc7e833decaf185e5f (patch)
treeb6ae580f778ac5a1777703cedd9329315b9557ff /block
parentblock: remove an incorrect check from blk_rq_append_bio (diff)
downloadlinux-907d52310024fae6632aabfc7e833decaf185e5f.tar.xz
linux-907d52310024fae6632aabfc7e833decaf185e5f.zip
block: add queue_to_disk() to get gendisk from request_queue
Sometimes we need to get the corresponding gendisk from request_queue. It is preferred that block drivers store private data in gendisk->private_data rather than request_queue->queuedata, e.g. see: commit c4a59c4e5db3 ("dm: stop using ->queuedata"). So if only request_queue is given, we need to get its corresponding gendisk to get the private data stored in that gendisk. Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions