diff options
| author | Bart Van Assche <[email protected]> | 2018-06-22 14:52:59 -0700 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2018-07-02 16:44:31 -0400 |
| commit | 7b2cc7dc0dbf5da9cf16ffcf1ca8e904ab574ff5 (patch) | |
| tree | 9f70b826382c1da41526b21ae80cb3ee113f2638 /tools/perf/scripts/python | |
| parent | edf46eee59c5acd829c3b6a564c26b5386362ea3 (diff) | |
scsi: target: Simplify the code for waiting for command completion
Instead of embedding the completion that is used for waiting for command
completion in struct se_cmd, let the context that waits for command
completion allocate it. This makes it possible to have a single code path
for non-aborted and aborted commands in target_release_cmd_kref() and
avoids that transport_generic_free_cmd() has to call
cmd->se_tfo->release_cmd() directly. This patch does not change any
functionality. Note: transport_generic_free_cmd() only waits until the
se_cmd reference count has reached zero after it has set both
CMD_T_FABRIC_STOP and CMD_T_ABORTED.
Signed-off-by: Bart Van Assche <[email protected]>
Reviewed-by: Mike Christie <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions