]> git.baikalelectronics.ru Git - kernel.git/commit
md: use interruptible wait when duration is controlled by userspace.
authorNeilBrown <neilb@suse.de>
Wed, 1 Jul 2009 03:15:35 +0000 (13:15 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 1 Jul 2009 03:15:35 +0000 (13:15 +1000)
commit04f26a28fe808e94cb18e23690dbe8c93d72b1d0
tree0ec3471f4e66e3a376ac8cb2da79d6123e7aa2cf
parent55fe1ba6e5674909b59123731c955f56a958e55a
md: use interruptible wait when duration is controlled by userspace.

User space can set various limits on an md array so that resync waits
when it gets to a certain point, or so that I/O is blocked for a short
while.
When md is waiting against one of these limit, it should use an
interruptible wait so as not to add to the load average, and so are
not to trigger a warning if the wait goes on for too long.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c
drivers/md/raid5.c