diff options
author | Ming Lei <tom.leiming@gmail.com> | 2017-03-27 20:06:57 +0800 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-03-29 08:03:42 -0600 |
commit | 1671d522cdd9933dee7dddfcf9f62c561283824a (patch) | |
tree | 075b8a1fb1a83a3301c6f928cfbdb815961de1f6 /block/blk-core.c | |
parent | 5ed61d3f08d44937859dc537c5362ca293c98b04 (diff) | |
download | op-kernel-dev-1671d522cdd9933dee7dddfcf9f62c561283824a.zip op-kernel-dev-1671d522cdd9933dee7dddfcf9f62c561283824a.tar.gz |
block: rename blk_mq_freeze_queue_start()
As the .q_usage_counter is used by both legacy and
mq path, we need to block new I/O if queue becomes
dead in blk_queue_enter().
So rename it and we can use this function in both
paths.
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 6373feb..7b66f76 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -670,7 +670,7 @@ int blk_queue_enter(struct request_queue *q, bool nowait) return -EBUSY; /* - * read pair of barrier in blk_mq_freeze_queue_start(), + * read pair of barrier in blk_freeze_queue_start(), * we need to order reading __PERCPU_REF_DEAD flag of * .q_usage_counter and reading .mq_freeze_depth, * otherwise the following wait may never return if the |