Re: [PATCH 01/19] block: Avoid that blk_exit_rl() triggers a use-after-free

2017-05-26 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

[PATCH 01/19] block: Avoid that blk_exit_rl() triggers a use-after-free

2017-05-25 Thread Bart Van Assche
Since the introduction of the .init_rq_fn() and .exit_rq_fn() it is essential that the memory allocated for struct request_queue stays around until all blk_exit_rl() calls have finished. Hence make blk_init_rl() take a reference on struct request_queue. This patch fixes the following crash: