From 88260b17df5d7dd7901014b7afb09a5d73486ebc Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 9 Jul 2008 17:38:34 +0000 Subject: [PATCH] The LSI SCST driver does not forward ABORT TASK SET task management messages to SCST. This patch fixes that. Signed-off-by: Erik Habbinga git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@449 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- mpt/mpt_scst.c | 6 ++++-- mpt/mpt_scst.h | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/mpt/mpt_scst.c b/mpt/mpt_scst.c index 563f94860..ad49fa65d 100644 --- a/mpt/mpt_scst.c +++ b/mpt/mpt_scst.c @@ -1842,7 +1842,8 @@ mpt_local_task_mgmt(struct mpt_sess *sess, int task_mgmt, int lun) case IMM_NTFY_LUN_RESET1: case IMM_NTFY_LUN_RESET2: case IMM_NTFY_CLEAR_TS: - case IMM_NTFY_ABORT_TS: + case IMM_NTFY_ABORT_TS1: + case IMM_NTFY_ABORT_TS2: list_for_each_entry_safe(cmd, t, &sess->delayed_cmds, delayed_cmds_entry) { @@ -1933,7 +1934,8 @@ mpt_handle_task_mgmt(MPT_STM_PRIV *priv, u32 reply_word, SCST_ATOMIC, mcmd); break; - case IMM_NTFY_ABORT_TS: + case IMM_NTFY_ABORT_TS1: + case IMM_NTFY_ABORT_TS2: TRACE(TRACE_MGMT, "%s", "IMM_NTFY_ABORT_TS received"); rc = scst_rx_mgmt_fn_lun(sess->scst_sess, SCST_ABORT_TASK_SET, (uint8_t *)&lun, sizeof(lun), diff --git a/mpt/mpt_scst.h b/mpt/mpt_scst.h index c243d67ab..36de52366 100644 --- a/mpt/mpt_scst.h +++ b/mpt/mpt_scst.h @@ -310,7 +310,8 @@ typedef struct _MPT_STM_PRIV #define IMM_NTFY_MSG_RX 0x0036 /* Immediate notify task flags */ -#define IMM_NTFY_ABORT_TS 0x01 +#define IMM_NTFY_ABORT_TS1 0x01 +#define IMM_NTFY_ABORT_TS2 0x02 #define IMM_NTFY_CLEAR_TS 0x04 #define IMM_NTFY_LUN_RESET1 0x08 #define IMM_NTFY_LUN_RESET2 0x10