From: Nicholas Bellinger Date: Thu, 3 Oct 2013 20:37:21 +0000 (-0700) Subject: iscsi-target: Only perform wait_for_tasks when performing shutdown X-Git-Tag: v3.12-rc4~2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e255a28598e8e63070322fc89bd34189dd660a89;p=pandora-kernel.git 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 --- Reading git-diff-tree failed