IB/hfi1: Fix user SDMA racy user request claim
authorDean Luick <dean.luick@intel.com>
Thu, 28 Jul 2016 19:21:18 +0000 (15:21 -0400)
committerDoug Ledford <dledford@redhat.com>
Wed, 3 Aug 2016 02:46:21 +0000 (22:46 -0400)
commit7b3256e331270c7de43ccf3879b7c289cdc3ff28
treed25b92680b6edc3572e4bffd046049c685846c8f
parent9da7e9a711e6fbecd111b9873682480c77c64192
IB/hfi1: Fix user SDMA racy user request claim

The user SDMA in-use claim bit is in the structure that gets zeroed out
once the claim is made.  Move the request in-use flag into its own bit
array and use that for atomic claims.  This cleans up the claim code and
removes any race possibility.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/user_sdma.c
drivers/infiniband/hw/hfi1/user_sdma.h