block: move blk_io_schedule() out of header file
authorMing Lei <ming.lei@redhat.com>
Thu, 14 May 2020 08:45:09 +0000 (16:45 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 May 2020 14:06:04 +0000 (08:06 -0600)
commit71ac860af824ce9ebbbe8de20044e777c0fc33b9
treea060314e64f575390ed43d4009778bc6ce27826d
parent02ef12a663c7ac24b06146d0ed3137848edb0676
block: move blk_io_schedule() out of header file

blk_io_schedule() isn't called from performance sensitive code path, and
it is easier to maintain by exporting it as symbol.

Also blk_io_schedule() is only called by CONFIG_BLOCK code, so it is safe
to do this way. Meantime fixes build failure when CONFIG_BLOCK is off.

Cc: Christoph Hellwig <hch@infradead.org>
Fixes: e6249cdd46e4 ("block: add blk_io_schedule() for avoiding task hung in sync dio")
Reported-by: Satya Tangirala <satyat@google.com>
Tested-by: Satya Tangirala <satyat@google.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
include/linux/blkdev.h