]> git.karo-electronics.de Git - linux-beck.git/commit
IB/hfi1: Fix missing lock/unlock in verbs drain callback
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Wed, 20 Apr 2016 13:05:30 +0000 (06:05 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 28 Apr 2016 16:00:39 +0000 (12:00 -0400)
commitb9b06cb6fedab10665a2d527464b45f332d17465
treea4fd044efcf97647eefd215c660ae983348826fa
parente6d2e0176e1f3c1e1534851b66c0b972f03ff069
IB/hfi1: Fix missing lock/unlock in verbs drain callback

The iowait_sdma_drained() callback lacked locking to
protect the qp s_flags field.

This causes the s_flags to be out of sync
on multiple CPUs, potentially corrupting the s_flags.

Fixes: a545f5308b6c ("staging/rdma/hfi: fix CQ completion order issue")
Reviewed-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/qp.c