blk-mq: remove blk_mq_put_ctx()
authorBart Van Assche <bvanassche@acm.org>
Mon, 1 Jul 2019 15:47:29 +0000 (08:47 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 3 Jul 2019 03:03:27 +0000 (21:03 -0600)
commitc05f42206f4de12b6807270fc669b45472f1bdb7
tree82aaf5161958336f8ef635f9f7a8daaeddad7f64
parent417232880c8a646739dbf4666a231505a1917fcb
blk-mq: remove blk_mq_put_ctx()

No code that occurs between blk_mq_get_ctx() and blk_mq_put_ctx() depends
on preemption being disabled for its correctness. Since removing the CPU
preemption calls does not measurably affect performance, simplify the
blk-mq code by removing the blk_mq_put_ctx() function and also by not
disabling preemption in blk_mq_get_ctx().

Cc: Hannes Reinecke <hare@suse.com>
Cc: Omar Sandoval <osandov@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sched.c
block/blk-mq-tag.c
block/blk-mq.c
block/blk-mq.h
block/kyber-iosched.c