]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7705fee32fb191b1468c53d5f91134fea2093499
tree9eb8603b339a52770d8071bf2a716ea38a2f8300
parent378e1fc3918af37cb8b8f2a726d78c6de01c5226
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