Re: [dm-devel] [PATCH RFC 2/7] block: add helper function fetching gendisk from queue

2021-01-07 Thread Mike Snitzer
On Wed, Dec 23 2020 at 6:26am -0500, Jeffle Xu wrote: > Sometimes we need to get the corresponding gendisk from request_queue. > > One such use case is that, the block device driver had ever stored the > same private data both in queue->queuedata and gendisk->private_data, > while nowadays

[dm-devel] [PATCH RFC 2/7] block: add helper function fetching gendisk from queue

2021-01-04 Thread Jeffle Xu
Sometimes we need to get the corresponding gendisk from request_queue. One such use case is that, the block device driver had ever stored the same private data both in queue->queuedata and gendisk->private_data, while nowadays gendisk->private_data is more preferable in such case, e.g. commit