IB/srpt: Fix a race condition related to wait list processing
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 17 Jan 2018 00:14:14 +0000 (16:14 -0800)
committerDoug Ledford <dledford@redhat.com>
Thu, 18 Jan 2018 19:49:26 +0000 (14:49 -0500)
commite28a547da6e9c6dd5ba64b978d361222db3592e7
tree9eb8603b339a52770d8071bf2a716ea38a2f8300
parentdb7683d7deb25d6edc9c59ac45c56c6a48a45514
IB/srpt: Fix a race condition related to wait list processing

Wait list processing only occurs if the channel state >= CH_LIVE. Hence
set the channel state to CH_LIVE before triggering wait list processing
asynchronously.

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