From 3d79a16d66a0ed021319a3981ab695f6458f717b Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 1 Nov 2018 04:05:42 +0000 Subject: [PATCH] ib_srpt: Remove an unused member variable (merge r7283 from trunk) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7539 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 fdceaf2e4..bac3101d8 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;