OSDN Git Service

RDS: limit the number of times we loop in rds_send_xmit
authorChris Mason <chris.mason@oracle.com>
Fri, 3 Feb 2012 16:07:54 +0000 (11:07 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Aug 2019 19:04:24 +0000 (12:04 -0700)
commit65dedd7fe1f224e9989181d161e23f0a544d304f
tree1bf881782c731426670ed84d8343af3f0313977c
parent907389b747e1ec8f7ff19c555dcfbcedfc4f7d67
RDS: limit the number of times we loop in rds_send_xmit

This will kick the RDS worker thread if we have been looping
too long.

Original commit from 2012 updated to include a change by
Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
that triggers "must_wake" if "rds_ib_recv_refill_one" fails.

Signed-off-by: Gerd Rausch <gerd.rausch@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/ib_recv.c