]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6caf0335108cc5507c371c7b632410851a6038f0
tree13b078f08c9411e3f8f7052c79add9db228a00b6
parent6a9ee45d263f0d1c1a2dcc34bacf6430e6feabf1
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