linux-next: manual merge of the rdma tree with the origin tree
Subsystems (3)
Mark Brown
maintainerHi all,
Today's linux-next merge of the rdma tree got a conflict in:
drivers/infiniband/sw/rxe/rxe_verbs.c
between commit:
ae36a5b609ae7 ("RDMA/rxe: validate access flags before swapping the MR's PD")
from the origin tree and commit:
2dac7006b9fb4 ("RDMA/rxe: Reject IB_ACCESS_ON_DEMAND changes after MR creation")
from the rdma tree.
I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
drivers/infiniband/sw/rxe/rxe_verbs.c +0 -0
@@@ -1331,12 -1331,12 +1331,18 @@@ static struct ib_mr *rxe_rereg_user_mr(if (err)return ERR_PTR (err); + if ((flags & IB_MR_REREG_ACCESS) && + (access & ~RXE_ACCESS_SUPPORTED_MR)) { +rxe_err_mr (mr,"access = %#x not supported\n" , access); + return ERR_PTR(-EOPNOTSUPP); + } + + if ((flags & IB_MR_REREG_ACCESS) && + ((access ^ mr->access) & IB_ACCESS_ON_DEMAND)) { +rxe_err_mr (mr,"cannot change IB_ACCESS_ON_DEMAND\n" ); +return ERR_PTR (-EOPNOTSUPP ); + } +if (flags &IB_MR_REREG_PD ) {rxe_put (old_pd);rxe_get (pd);