Ming Lei 10f7335e36 blk-mq: don't grab ->q_usage_counter in blk_mq_sched_bio_merge
blk_mq_sched_bio_merge is only called from blk-mq.c:blk_attempt_bio_merge(),
which is called when queue usage counter is grabbed already:

1) blk_mq_get_new_requests()

2) blk_mq_get_request()
- cached request in current plug owns one queue usage counter

So don't grab ->q_usage_counter in blk_mq_sched_bio_merge(), and more
importantly this nest way causes hang in blk_mq_freeze_queue_wait().

Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211111085134.345235-2-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-11-11 11:52:33 -07:00
..
2021-11-01 09:50:37 -07:00
2021-08-18 07:21:12 -06:00
2021-11-09 11:20:07 -08:00
2021-06-17 15:51:20 +02:00
2021-11-09 11:20:07 -08:00
2020-03-17 20:55:21 +01:00
2021-11-09 11:20:07 -08:00
2021-09-14 00:22:15 -04:00
2021-10-18 06:17:01 -06:00
2021-11-09 11:16:20 -08:00
2021-10-18 06:17:35 -06:00