IB/ehca: Serialize MR alloc and MR free hvCalls
authorJoachim Fenkes <fenkes@de.ibm.com>
Tue, 11 Sep 2007 13:34:35 +0000 (15:34 +0200)
committerRoland Dreier <rolandd@cisco.com>
Wed, 10 Oct 2007 02:59:11 +0000 (19:59 -0700)
commit0b5de96858e516311f2d3ca45073c2afd2eb5d94
tree83fbe9083a68e5a1456a44111dd823b49c71e69a
parente90d0b3daede2bae2e78f8bf88c19182961cd19d
IB/ehca: Serialize MR alloc and MR free hvCalls

Some firmware levels exhibit a race condition between H_ALLOC_RESOURCE(MR)
and H_FREE_RESOURCE(MR).  Work around this problem by locking these hvCalls
against each other.

Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/hcp_if.c