diff options
author | Ming Lei <ming.lei@redhat.com> | 2017-05-22 23:05:05 +0800 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-05-22 20:50:11 +0200 |
commit | 7254a50a5db40ca6739ddf37e0a45e6912532b2c (patch) | |
tree | aa27e6551258d260c786961b8ef17b59dd2df82d /block | |
parent | 986f75c876dbafed98eba7cb516c5118f155db23 (diff) | |
download | linux-stable-7254a50a5db40ca6739ddf37e0a45e6912532b2c.tar.gz linux-stable-7254a50a5db40ca6739ddf37e0a45e6912532b2c.tar.bz2 linux-stable-7254a50a5db40ca6739ddf37e0a45e6912532b2c.zip |
blk-mq: remove blk_mq_abort_requeue_list()
No one uses it any more, so remove it.
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-mq.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index a69ad122ed66..f2224ffd225d 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -628,25 +628,6 @@ void blk_mq_delay_kick_requeue_list(struct request_queue *q, } EXPORT_SYMBOL(blk_mq_delay_kick_requeue_list); -void blk_mq_abort_requeue_list(struct request_queue *q) -{ - unsigned long flags; - LIST_HEAD(rq_list); - - spin_lock_irqsave(&q->requeue_lock, flags); - list_splice_init(&q->requeue_list, &rq_list); - spin_unlock_irqrestore(&q->requeue_lock, flags); - - while (!list_empty(&rq_list)) { - struct request *rq; - - rq = list_first_entry(&rq_list, struct request, queuelist); - list_del_init(&rq->queuelist); - blk_mq_end_request(rq, -EIO); - } -} -EXPORT_SYMBOL(blk_mq_abort_requeue_list); - struct request *blk_mq_tag_to_rq(struct blk_mq_tags *tags, unsigned int tag) { if (tag < tags->nr_tags) { |