Re: [PATCH v2 02/12] block: Introduce request_queue.initialize_rq_fn()

2017-06-01 Thread Christoph Hellwig
On Wed, May 31, 2017 at 03:52:36PM -0700, Bart Van Assche wrote: > Several block drivers need to initialize the driver-private data > after having called blk_get_request() and before .prep_rq_fn() is > called, e.g. when submitting a REQ_OP_SCSI_* request. Avoid that > that initialization code has

[PATCH v2 02/12] block: Introduce request_queue.initialize_rq_fn()

2017-05-31 Thread Bart Van Assche
Several block drivers need to initialize the driver-private data after having called blk_get_request() and before .prep_rq_fn() is called, e.g. when submitting a REQ_OP_SCSI_* request. Avoid that that initialization code has to be repeated after every blk_get_request() call by adding a new