]> git.ipfire.org Git - people/ms/linux.git/commit
xfs: check for more work before sleeping in xfssyncd
authorDave Chinner <david@fromorbit.com>
Thu, 4 Mar 2010 01:46:23 +0000 (01:46 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:48:02 +0000 (07:48 -0700)
commitd4187adfe63696f0abc60d32320271f1ec7e8110
tree387480abcbe8a6217ee4b281e94ddf28646219b7
parent87bcb4b15d9443cf9a12943fb9162e53ac045b55
xfs: check for more work before sleeping in xfssyncd

commit 20f6b2c785cf187445f126321638ab8ba7aa7494 upstream.

xfssyncd processes a queue of work by detaching the queue and
then iterating over all the work items. It then sleeps for a
time period or until new work comes in. If new work is queued
while xfssyncd is actively processing the detached work queue,
it will not process that new work until after a sleep timeout
or the next work event queued wakes it.

Fix this by checking the work queue again before going to sleep.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/xfs/linux-2.6/xfs_sync.c