Thread (48 messages) 48 messages, 3 authors, 2017-05-30

Re: [PATCH 09/19] block: Make scsi_req_init() calls implicit

From: Christoph Hellwig <hch@lst.de>
Date: 2017-05-28 08:38:44

On Thu, May 25, 2017 at 11:43:17AM -0700, Bart Van Assche wrote:
Instead of explicitly calling scsi_req_init(), let
blk_get_request() call that function from inside blk_rq_init().
Add an .initialize_rq_fn() callback function to the block drivers
that need it. Merge the IDE .init_rq_fn() function into
.initialize_rq_fn() because it is too small to keep it as a
separate function.
That won't work if we don't call initialize_rq_fn from the fast path.

Except for that the idea is great and I like it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help