dlm: reduce cond_resched during send
authorBob Peterson <rpeterso@redhat.com>
Fri, 12 Nov 2010 17:15:20 +0000 (11:15 -0600)
committerDavid Teigland <teigland@redhat.com>
Fri, 12 Nov 2010 17:15:20 +0000 (11:15 -0600)
commitf92c8dd7a0eb18124521e2b549f88422e17f707b
treea93e644b31f9c8860a6dd513abfc0005bb602c0f
parentcb2d45da81c86d5191b19d0f67732a854bc0253c
dlm: reduce cond_resched during send

Calling cond_resched() after every send can unnecessarily
degrade performance.  Go back to an old method of scheduling
after 25 messages.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c