aboutsummaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorJeffle Xu <[email protected]>2021-04-01 10:19:25 +0800
committerJens Axboe <[email protected]>2021-04-12 06:51:57 -0600
commit907d52310024fae6632aabfc7e833decaf185e5f (patch)
treeb6ae580f778ac5a1777703cedd9329315b9557ff /include/linux/overflow.h
parentcbb749cf377aa8aa32a036ebe9dd9f2d89037bf0 (diff)
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 <[email protected]> Reviewed-by: Mike Snitzer <[email protected]> Signed-off-by: Jeffle Xu <[email protected]> Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions