mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
iSCSI-SCST builds again on RHEL 5.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3488 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2362,10 +2362,18 @@ struct iscsi_cmnd_abort_params {
|
||||
|
||||
static mempool_t *iscsi_cmnd_abort_mempool;
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
|
||||
static void iscsi_cmnd_abort_fn(void *ctx)
|
||||
#else
|
||||
static void iscsi_cmnd_abort_fn(struct work_struct *work)
|
||||
#endif
|
||||
{
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
|
||||
struct iscsi_cmnd_abort_params *params = ctx;
|
||||
#else
|
||||
struct iscsi_cmnd_abort_params *params = container_of(work,
|
||||
struct iscsi_cmnd_abort_params, iscsi_cmnd_abort_work);
|
||||
#endif
|
||||
struct scst_cmd *scst_cmd = params->scst_cmd;
|
||||
struct iscsi_session *session = scst_sess_get_tgt_priv(scst_cmd->sess);
|
||||
struct iscsi_conn *conn;
|
||||
@@ -2424,7 +2432,11 @@ static void iscsi_on_abort_cmd(struct scst_cmd *scst_cmd)
|
||||
}
|
||||
|
||||
memset(params, 0, sizeof(*params));
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
|
||||
INIT_WORK(¶ms->iscsi_cmnd_abort_work, iscsi_cmnd_abort_fn, params);
|
||||
#else
|
||||
INIT_WORK(¶ms->iscsi_cmnd_abort_work, iscsi_cmnd_abort_fn);
|
||||
#endif
|
||||
params->scst_cmd = scst_cmd;
|
||||
|
||||
scst_cmd_get(scst_cmd);
|
||||
|
||||
Reference in New Issue
Block a user