]> 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)
commit34df188ccdfb3b75f7c90df229ad130681df38b2
tree5b89b50b90df77720a378cb2d59f11f67ec19596
parent795e05dca16313932f9d354372257a575c95a399
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