]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2d66384dc90984c61787206b29c53fb7b039b6c4
tree5b89b50b90df77720a378cb2d59f11f67ec19596
parentab797f13cd31b78a6cfc179ce4574b0436436b96
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