diff options
author | Bijan Mottahedeh <[email protected]> | 2020-02-26 18:53:43 -0800 |
---|---|---|
committer | Keith Busch <[email protected]> | 2020-02-28 01:32:14 +0900 |
commit | 9515743bfb39c61aaf3d4f3219a645c8d1fe9a0e (patch) | |
tree | abe811e8684f25b41397639a2c41b54466bbc8a1 /tools/perf/util/trace-event-scripting.c | |
parent | cae740a04b4d6d5166f19ee5faf04ea2a1f34b3d (diff) |
nvme-pci: Hold cq_poll_lock while completing CQEs
Completions need to consumed in the same order the controller submitted
them, otherwise future completion entries may overwrite ones we haven't
handled yet. Hold the nvme queue's poll lock while completing new CQEs to
prevent another thread from freeing command tags for reuse out-of-order.
Fixes: dabcefab45d3 ("nvme: provide optimized poll function for separate poll queues")
Signed-off-by: Bijan Mottahedeh <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Reviewed-by: Jens Axboe <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions