aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2021-09-16 17:33:44 +0800
committerJens Axboe <[email protected]>2021-10-18 14:50:37 -0600
commit4e6eef5dc25b528e08ac5b5f64f6ca9d9987241d (patch)
tree2e860fa67b13acbe5f7441d2b0ab13d8fc006c76 /tools/perf/scripts/python/check-perf-trace.py
parentc573d586999cb7e694efad79f0cb69a8215bbef6 (diff)
nbd: don't handle response without a corresponding request message
While handling a response message from server, nbd_read_stat() will try to get request by tag, and then complete the request. However, this is problematic if nbd haven't sent a corresponding request message: t1 t2 submit_bio nbd_queue_rq blk_mq_start_request recv_work nbd_read_stat blk_mq_tag_to_rq blk_mq_complete_request nbd_send_cmd Thus add a new cmd flag 'NBD_CMD_INFLIGHT', it will be set in nbd_send_cmd() and checked in nbd_read_stat(). Noted that this patch can't fix that blk_mq_tag_to_rq() might return a freed request, and this will be fixed in following patches. Signed-off-by: Yu Kuai <[email protected]> Reviewed-by: Ming Lei <[email protected]> Reviewed-by: Josef Bacik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions