RDS: Make sure cmsgs aren't used in improper ways
authorAndy Grover <andy.grover@oracle.com>
Tue, 13 Apr 2010 19:00:35 +0000 (12:00 -0700)
committerAndy Grover <andy.grover@oracle.com>
Thu, 9 Sep 2010 01:12:07 +0000 (18:12 -0700)
commitaa0a4ef4ac3a3c5ffa35e32520bfbc0922ef3630
tree13b078f08c9411e3f8f7052c79add9db228a00b6
parent2c3a5f9abb1dc5efdab8ba9a568b1661c65fd1e3
RDS: Make sure cmsgs aren't used in improper ways

It hasn't cropped up in the field, but this code ensures it is
impossible to issue operations that pass an rdma cookie (DEST, MAP)
in the same sendmsg call that's actually initiating rdma or atomic
ops.

Disallowing this perverse-but-technically-allowed usage makes silent
RDMA heuristics slightly easier.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
net/rds/send.c