From e16e4beb3b70337c7cbabd115a134dbada6cf1ac Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 20 Mar 2014 15:13:50 +0000 Subject: [PATCH] ib_srpt: Simplify srpt_handle_cmd() git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5344 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index deece73bc..8e826759e 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1688,18 +1688,15 @@ static int srpt_handle_cmd(struct srpt_rdma_ch *ch, scst_data_direction dir; u64 data_len; int ret; - int atomic; BUG_ON(!send_ioctx); srp_cmd = recv_ioctx->ioctx.buf; - atomic = context == SCST_CONTEXT_TASKLET ? SCST_ATOMIC - : SCST_NON_ATOMIC; scmnd = &send_ioctx->scmnd; ret = scst_rx_cmd_prealloced(scmnd, ch->scst_sess, (u8 *) &srp_cmd->lun, sizeof(srp_cmd->lun), srp_cmd->cdb, - sizeof(srp_cmd->cdb), atomic); + sizeof(srp_cmd->cdb), in_interrupt()); if (ret) { PRINT_ERROR("tag 0x%llx: SCST command initialization failed", srp_cmd->tag);