From 63178c603d34c7861c5e696279a7be0801d29318 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 22 Dec 2017 23:14:47 +0000 Subject: [PATCH] ib_srpt: Remove an unused member variable git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7283 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 1 - srpt/src/ib_srpt.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 06dad8788..ab9c9c476 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1318,7 +1318,6 @@ static struct srpt_send_ioctx *srpt_get_send_ioctx(struct srpt_rdma_ch *ch) return ioctx; BUG_ON(ioctx->ch != ch); - spin_lock_init(&ioctx->spinlock); ioctx->state = SRPT_STATE_NEW; EXTRACHECKS_WARN_ON(ioctx->recv_ioctx); ioctx->n_rbuf = 0; diff --git a/srpt/src/ib_srpt.h b/srpt/src/ib_srpt.h index fed94c307..62a5eccd0 100644 --- a/srpt/src/ib_srpt.h +++ b/srpt/src/ib_srpt.h @@ -245,7 +245,6 @@ struct srpt_tsk_mgmt { * @rbufs: Pointer to SRP data buffer array. * @single_rbuf: SRP data buffer if the command has only a single buffer. * @sg: Pointer to sg-list associated with this I/O context. - * @spinlock: Protects 'state'. * @state: I/O context state. * @rdma_aborted: If initiating a multipart RDMA transfer failed, whether * the already initiated transfers have finished. @@ -273,7 +272,6 @@ struct srpt_send_ioctx { struct srp_direct_buf single_rbuf; struct scatterlist *sg; struct list_head free_list; - spinlock_t spinlock; enum srpt_command_state state; bool rdma_aborted; int sg_cnt;