md: improve the is_mddev_idle test fix
authorNeilBrown <neilb@suse.de>
Tue, 17 Jul 2007 11:06:12 +0000 (04:06 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:15 +0000 (10:23 -0700)
commit713f6ab18b0e7d39f14401362bfe8015b1aedde1
treefc6ef865d09de1ec816ed96860ffc27dd48d837b
parentdf968c4e8d809deb2602fb0e8db758f26a4006b9
md: improve the is_mddev_idle test fix

Don't use 'unsigned' variable to track sync vs non-sync IO, as the only thing
we want to do with them is a signed comparison, and fix up the comment which
had become quite wrong.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/md.c
include/linux/raid/md_k.h