On Sun, 2017-05-28 at 10:42 +0200, Christoph Hellwig wrote:
> On Thu, May 25, 2017 at 11:43:20AM -0700, Bart Van Assche wrote:
> > Initialization of blk-mq requests is a bit weird: blk_mq_rq_ctx_init()
> > is called after a tag has been assigned and .rq_flags is initialized
> > in
On Thu, May 25, 2017 at 11:43:20AM -0700, Bart Van Assche wrote:
> Initialization of blk-mq requests is a bit weird: blk_mq_rq_ctx_init()
> is called after a tag has been assigned and .rq_flags is initialized
> in __blk_mq_finish_request().
>
> Call blk_mq_rq_ctx_init() before
> modifying any
Initialization of blk-mq requests is a bit weird: blk_mq_rq_ctx_init()
is called after a tag has been assigned and .rq_flags is initialized
in __blk_mq_finish_request(). Call blk_mq_rq_ctx_init() before
modifying any struct request members. Initialize .rq_flags in
blk_mq_rq_ctx_init() instead of