summaryrefslogtreecommitdiffstats
path: root/lib/sha1.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2014-05-28 16:33:51 +0200
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2014-06-04 14:56:45 +0200
commit8301a2c047cc25dabd645e5590c1db0ead4c5af4 (patch)
treeeb9901cc1585570fe8306d05d6d3b381662ef1ce /lib/sha1.c
parentxprtrmda: Reduce calls to ib_poll_cq() in completion handlers (diff)
downloadlinux-8301a2c047cc25dabd645e5590c1db0ead4c5af4.tar.xz
linux-8301a2c047cc25dabd645e5590c1db0ead4c5af4.zip
xprtrdma: Limit work done by completion handler
Sagi Grimberg <sagig@dev.mellanox.co.il> points out that a steady stream of CQ events could starve other work because of the boundless loop pooling in rpcrdma_{send,recv}_poll(). Instead of a (potentially infinite) while loop, return after collecting a budgeted number of completions. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Acked-by: Sagi Grimberg <sagig@dev.mellanox.co.il> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'lib/sha1.c')
0 files changed, 0 insertions, 0 deletions