]> git.baikalelectronics.ru Git - kernel.git/commit
dm raid1: use timer
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 24 Apr 2008 21:10:42 +0000 (22:10 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 25 Apr 2008 12:26:56 +0000 (13:26 +0100)
commiteee18ce7be69d0d430b784bbb302bb37c54ea403
tree9475bf530b36f3f4a26c8307d94b3c53787d9ef2
parentd6c84aabfdce2f7ecedd899c5de8bc42ae561e81
dm raid1: use timer

This patch replaces the schedule() in the main kmirrord thread with a timer.
The schedule() could introduce an unwanted delay when work is ready to be
processed.

The code instead calls wake() when there's work to be done immediately, and
delayed_wake() after a failure to give a short delay before retrying.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-raid1.c