[PATCH] btrfs: Fix busyloops in transaction waiting code

2012-01-26 Thread Jan Kara
wait_log_commit() and wait_for_writer() were using slightly different conditions for deciding whether they should call schedule() and whether they should continue in the wait loop. Thus it could happen that we busylooped when the first condition was not true while the second one was. That is

Re: [PATCH] btrfs: Fix busyloops in transaction waiting code

2012-01-26 Thread Chris Mason
On Thu, Jan 26, 2012 at 05:11:36PM +0100, Jan Kara wrote: wait_log_commit() and wait_for_writer() were using slightly different conditions for deciding whether they should call schedule() and whether they should continue in the wait loop. Thus it could happen that we busylooped when the first

[PATCH] btrfs: Fix busyloops in transaction waiting code

2012-01-25 Thread Jan Kara
wait_log_commit() and wait_for_writer() were using slightly different conditions for deciding whether they should call schedule() and whether they should continue in the wait loop. Thus it could happen that we busylooped when the first condition was not true while the second one was. That is