Thread (5 messages) 5 messages, 4 authors, 2021-02-25

Re: [RFC PATCH] blk-core: remove blk_put_request()

From: Chaitanya Kulkarni <hidden>
Date: 2021-02-25 02:02:57
Also in: dm-devel, linux-ide, linux-mmc, linux-nfs, linux-scsi, lkml, target-devel

On 2/24/21 10:56, Christoph Hellwig wrote:
On Wed, Feb 24, 2021 at 09:48:21AM -0700, Jens Axboe wrote:
quoted
Would make sense to rename blk_get_request() to blk_mq_alloc_request()
and then we have API symmetry. The get/put don't make sense when there
are no references involved.

But it's a lot of churn for very little reward, which is always kind
of annoying. Especially for the person that has to carry the patches.
Let's do the following:

 - move the initialize_rq_fn call from blk_get_request into
   blk_mq_alloc_request and make the former a trivial alias for the
   latter
 - migrate to the blk_mq_* versions on a per-driver/subsystem basis.
   The scsi migration depends on the first item above, so it will have
   to go with that or wait for the next merge window
 - don't migrate the legacy ide driver, as it is about to be removed and
   has a huge number of blk_get_request calls
Okay, thanks for the feedback, will try and get something together.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help