block: Remove bio->bi_ioc
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. Reviewed-by:Christoph Hellwig <hch@lst.de> Reviewed-by:
Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by:
Adam Manzanares <adam.manzanares@wdc.com> Signed-off-by:
Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Showing
- block/bio.c 0 additions, 4 deletionsblock/bio.c
- block/blk-core.c 1 addition, 1 deletionblock/blk-core.c
- block/blk-mq-sched.c 2 additions, 2 deletionsblock/blk-mq-sched.c
- block/blk-mq-sched.h 1 addition, 1 deletionblock/blk-mq-sched.h
- block/blk-mq.c 2 additions, 2 deletionsblock/blk-mq.c
- block/blk.h 0 additions, 16 deletionsblock/blk.h
- include/linux/blk_types.h 1 addition, 2 deletionsinclude/linux/blk_types.h
Loading
Please register or sign in to comment