• Nicholas Bellinger's avatar
    target: Avoid extra t_state_lock access in __target_execute_cmd · 1a398b97
    Nicholas Bellinger authored
    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 <hch@lst.de>
    Cc: Roland Dreier <roland@kernel.org>
    Cc: Kent Overstreet <koverstreet@google.com>
    Cc: Or Gerlitz <ogerlitz@mellanox.com>
    Cc: Moussa Ba <moussaba@micron.com>
    Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    1a398b97
target_core_transport.c 77.2 KB