]> bbs.cooldavid.org Git - net-next-2.6.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)
commit3427e854e1a0e76be8b3d75fc0fa878f59b43693
treecc0bb1c074612cfd6634ac6a4fa9c92709fa185a
parent0b088e003ccf316a76c51be5dec2d70b93be3be8
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