]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
dlm: replace schedule with cond_resched
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 10 Dec 2008 15:31:02 +0000 (09:31 -0600)
committerDavid Teigland <teigland@redhat.com>
Tue, 23 Dec 2008 16:16:13 +0000 (10:16 -0600)
commitd61e9aac96317a43c192f1faabfa95d4d675b7ce
treed6e256d8394c4458012c1673ff4d5741d893b87a
parent1521848cbb42935a52d11305c054b14461ad061c
dlm: replace schedule with cond_resched

This is a one-liner to use cond_resched() rather than schedule()
in the ast delivery loop. It should not be necessary to schedule
every time, so this will save some cpu time while continuing to
allow scheduling when required.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/ast.c