From: Nicholas Bellinger Date: Thu, 6 Jun 2013 08:40:27 +0000 (-0700) Subject: target: Avoid extra t_state_lock access in __target_execute_cmd X-Git-Tag: v3.11-rc1~22^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a398b973184342f30ab97711b9c38fd75df0384;p=pandora-kernel.git target: Avoid extra t_state_lock access in __target_execute_cmd This patch makes target_execute_cmd() set CMD_T_BUSY|CMD_T_SENT while holding se_cmd->t_state_lock, in order to avoid the extra aquire/release in __target_execute_cmd(). It also clears these bits in case of a target_handle_task_attr() failure. Cc: Christoph Hellwig Cc: Roland Dreier Cc: Kent Overstreet Cc: Or Gerlitz Cc: Moussa Ba Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed