Re: [PATCH 2/7] block: Remove bio->bi_ioc
From: Christoph Hellwig <hch@infradead.org>
Date: 2018-11-19 18:36:21
Also in:
linux-fsdevel
From: Christoph Hellwig <hch@infradead.org>
Date: 2018-11-19 18:36:21
Also in:
linux-fsdevel
On Mon, Nov 19, 2018 at 12:51:26PM +0900, Damien Le Moal wrote:
bio->bi_ioc is never set so always NULL. Remove references to it in bio_disassociate_task() and in rq_ioc() and delete this field from struct bio. With this change, rq_ioc() always returns current->io_context without the need for a bio argument. Further simplify the code and make it more readable by also removing this helper, which also allows to simplify blk_mq_sched_assign_ioc() by removing its bio argument. Signed-off-by: Damien Le Moal <redacted>
Looks good, Reviewed-by: Christoph Hellwig <hch@lst.de>