diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-10-04 00:37:21 +0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-10-04 01:22:44 +0400 |
commit | e255a28598e8e63070322fc89bd34189dd660a89 (patch) | |
tree | 07565d81e79ee2065f97e75593c4e7185a490a88 /include/net/scm.h | |
parent | db60df88ec39715fc3fb2a846cf35837e074c11d (diff) | |
download | linux-e255a28598e8e63070322fc89bd34189dd660a89.tar.xz |
iscsi-target: Only perform wait_for_tasks when performing shutdown
This patch changes transport_generic_free_cmd() to only wait_for_tasks
when shutdown=true is passed to iscsit_free_cmd().
With the advent of >= v3.10 iscsi-target code using se_cmd->cmd_kref,
the extra wait_for_tasks with shutdown=false is unnecessary, and may
end up causing an extra context switch when releasing WRITEs.
Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/net/scm.h')
0 files changed, 0 insertions, 0 deletions