aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMike Christie <mchristi@redhat.com>2017-10-25 11:47:15 -0500
committerNicholas Bellinger <nab@linux-iscsi.org>2017-11-04 15:01:55 -0700
commit0d44374c1aaec7c81b470d3b5f955bc270711f9c (patch)
tree338c424b55d9df66a5b313ebd9e0b45856139c7d /tools/perf/scripts/python
parenta271eac46a9a2457f4e8c757f9b7fc92a445cf48 (diff)
tcmu: fix double se_cmd completion
If cmd_time_out != 0, then tcmu_queue_cmd_ring could end up sleeping waiting for ring space, timing out and then returning failure to lio, and tcmu_check_expired_cmd could also detect the timeout and call target_complete_cmd on the cmd. This patch just delays setting up the deadline value and adding the cmd to the udev->commands idr until we have allocated ring space and are about to send the cmd to userspace. Signed-off-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions