aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2018-08-14 23:57:49 +0800
committerJens Axboe <[email protected]>2018-08-14 11:05:52 -0600
commitdf60f6e835f763258a06cdbb5690a2e35c1aac4e (patch)
tree2313844fbbbc0204fadbca168205b46cc619071e /tools/perf/scripts/python/call-graph-from-sql.py
parentb089cfd95d32638335c551651a8e00fd2c4edb0b (diff)
blk-wbt: fix IO hang in wbt_wait()
On wbt invariant is that if one IO is tracked via WBT_TRACKED, rqw->inflight should be updated for tracking this IO. But commit c1c80384c8f ("block: remove external dependency on wbt_flags") forgets to remove the early handling of !rwb_enabled(rwb) inside wbt_wait(), then the inflight counter may not be increased in wbt_wait(), but decreased in wbt_done() for this kind of IO, so this counter may become negative, then wbt_wait() may wait forever. This patch fixes the report in the following link: https://marc.info/?l=linux-block&m=153221542021033&w=2 Fixes: c1c80384c8f ("block: remove external dependency on wbt_flags") Cc: Josef Bacik <[email protected]> Reported-by: Ming Lei <[email protected]> Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions