diff options
author | Christoph Hellwig <hch@lst.de> | 2018-12-02 19:46:26 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-12-04 21:38:19 +0300 |
commit | 529262d56dbebe6a26df5d2fd24cc0e1bc8579e5 (patch) | |
tree | 6040d2d4f2faa36d324559ea7fd2916b73130e1c /block/blk-core.c | |
parent | 9d6610b76fa374eae3deb93bcbace4a06c2e3b95 (diff) | |
download | linux-529262d56dbebe6a26df5d2fd24cc0e1bc8579e5.tar.xz |
block: remove ->poll_fn
This was intended to support users like nvme multipath, but is just
getting in the way and adding another indirect call.
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index a1a5e1c14898..ad59102ee30a 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1251,29 +1251,6 @@ blk_qc_t submit_bio(struct bio *bio) EXPORT_SYMBOL(submit_bio); /** - * blk_poll - poll for IO completions - * @q: the queue - * @cookie: cookie passed back at IO submission time - * @spin: whether to spin for completions - * - * Description: - * Poll for completions on the passed in queue. Returns number of - * completed entries found. If @spin is true, then blk_poll will continue - * looping until at least one completion is found, unless the task is - * otherwise marked running (or we need to reschedule). - */ -int blk_poll(struct request_queue *q, blk_qc_t cookie, bool spin) -{ - if (!q->poll_fn || !blk_qc_t_valid(cookie)) - return 0; - - if (current->plug) - blk_flush_plug_list(current->plug, false); - return q->poll_fn(q, cookie, spin); -} -EXPORT_SYMBOL_GPL(blk_poll); - -/** * blk_cloned_rq_check_limits - Helper function to check a cloned request * for new the queue limits * @q: the queue |