]> git.baikalelectronics.ru Git - kernel.git/commit
RDS: Assume recv->r_frag is always NULL in refill_one()
authorAndy Grover <andy.grover@oracle.com>
Tue, 25 May 2010 03:28:49 +0000 (20:28 -0700)
committerAndy Grover <andy.grover@oracle.com>
Thu, 9 Sep 2010 01:15:21 +0000 (18:15 -0700)
commitea588efb408a980c7c1624c0866588fa29e6c70c
treecc0bb1c074612cfd6634ac6a4fa9c92709fa185a
parent583e223a5bded15a2646f470f608fba298528405
RDS: Assume recv->r_frag is always NULL in refill_one()

refill_one() should never be called on a recv struct that
doesn't need a new r_frag allocated. Add a WARN and remove
conditional around r_frag alloc code.

Also, add a comment to explain why r_ibinc may or may not
need refilling.

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