IB/core: Encorce MR access rights rules on kernel consumers
authorEli Cohen <eli@dev.mellanox.co.il>
Thu, 31 Oct 2013 13:26:32 +0000 (15:26 +0200)
committerRoland Dreier <roland@purestorage.com>
Fri, 15 Nov 2013 18:25:32 +0000 (10:25 -0800)
commit1c636f801615bdfc9b1d46904e8258c7a025670b
tree600ff4b245e9287489c6c4b8a3a132f5adae5eb9
parent180771a3707a4c0577cbf4f830c754dbabfdfccb
IB/core: Encorce MR access rights rules on kernel consumers

Enforce the rule that when requesting remote write or atomic permissions, local
write must be indicated as well. See IB spec 11.2.8.2.

Spotted by: Hagay Abramovsky <hagaya@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/verbs.c
include/rdma/ib_verbs.h