Re: [PATCH v2 05/12] blk-mq: Initialize a request before assigning a tag

2017-06-01 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig Btw, blk_mq_rq_ctx_init should be marked static, but I'll send a separate patch for that.

[PATCH v2 05/12] blk-mq: Initialize a request before assigning a tag

2017-05-31 Thread Bart Van Assche
Initialization of blk-mq requests is a bit weird: blk_mq_rq_ctx_init() is called after a value has been assigned to .rq_flags 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