diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2018-01-08 11:00:51 -0800 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-01-08 16:05:12 -0500 |
commit | 2d67017cc78f1607bac5347ce0c5258734796faf (patch) | |
tree | b0401a467346a44250ad53aaa51ec5f1eb8ccc18 /drivers/infiniband/ulp/srpt/ib_srpt.h | |
parent | IB/srpt: Inline srpt_get_cmd_state() (diff) | |
download | linux-dev-2d67017cc78f1607bac5347ce0c5258734796faf.tar.xz linux-dev-2d67017cc78f1607bac5347ce0c5258734796faf.zip |
IB/srpt: Micro-optimize I/O context state manipulation
Since all I/O context state changes are already serialized, it is
not necessary to protect I/O context state changes with the I/O
context spinlock. Hence remove that spinlock.
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/srpt/ib_srpt.h')
-rw-r--r-- | drivers/infiniband/ulp/srpt/ib_srpt.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.h b/drivers/infiniband/ulp/srpt/ib_srpt.h index 8f90a7ca98e6..11ce8c94a051 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.h +++ b/drivers/infiniband/ulp/srpt/ib_srpt.h @@ -195,7 +195,6 @@ struct srpt_rw_ctx { * @rw_ctxs: RDMA read/write contexts. * @rdma_cqe: RDMA completion queue element. * @free_list: Node in srpt_rdma_ch.free_list. - * @spinlock: Protects 'state'. * @state: I/O context state. * @cmd: Target core command data structure. * @sense_data: SCSI sense data. @@ -213,7 +212,6 @@ struct srpt_send_ioctx { struct ib_cqe rdma_cqe; struct list_head free_list; - spinlock_t spinlock; enum srpt_command_state state; struct se_cmd cmd; u8 n_rdma; |