]> git.baikalelectronics.ru Git - kernel.git/commit
IB/srpt: Inline srpt_get_ch_state()
authorBart Van Assche <bart.vanassche@sandisk.com>
Thu, 11 Feb 2016 19:04:43 +0000 (11:04 -0800)
committerDoug Ledford <dledford@redhat.com>
Mon, 29 Feb 2016 22:12:35 +0000 (17:12 -0500)
commit9f24eff3ba67291fa6cd666afed9c95242e59939
tree7a989f46a1e55eda67cb7b01f883e696f0cc1328
parentded407e4c46ff1eaff25d13ef65f762415b1831f
IB/srpt: Inline srpt_get_ch_state()

The callers of srpt_get_ch_state() can access ch->state safely without
using locking. Hence inline this function.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Cc: Alex Estrin <alex.estrin@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c