]> git.baikalelectronics.ru Git - kernel.git/commit
async: fix __lowest_in_progress()
authorArjan van de Ven <arjan@linux.intel.com>
Sun, 11 Jan 2009 15:35:01 +0000 (15:35 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 13 Jan 2009 00:39:58 +0000 (16:39 -0800)
commitf02b945a8004a47d557e7593e6b8a2ec225bb519
tree6537cab6fb0e1a9508d34ca95b25808866bf04af
parente08fa008fc54f7d32cf1197545139f7fca615bb6
async: fix __lowest_in_progress()

At 37000 feet somewhere near Greenland I woke up from a half-sleep with the
realisation that __lowest_in_progress() is buggy. After landing I checked
and there were indeed 2 problems with it; this patch fixes both:
* The order of the list checks was wrong
* The locking was not correct.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/async.c