IB/srpt: Inline srpt_get_cmd_state()
authorBart Van Assche <bart.vanassche@wdc.com>
Mon, 8 Jan 2018 19:00:50 +0000 (11:00 -0800)
committerDoug Ledford <dledford@redhat.com>
Mon, 8 Jan 2018 21:05:12 +0000 (16:05 -0500)
commitdd3bec8655d6f760540afd2261ca7ae9b6888cb0
tree5b89b50b90df77720a378cb2d59f11f67ec19596
parentb14cb74479a2606b0052cc909727938953a939ac
IB/srpt: Inline srpt_get_cmd_state()

It is not necessary to obtain ioctx->spinlock when reading the ioctx
state. Since after removal of this locking only a single line remains,
inline the srpt_get_cmd_state() function.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c