]> git.baikalelectronics.ru Git - kernel.git/commit
dm raid1: wake kmirrord when requeueing delayed bios after remote recovery
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 23 Jul 2009 19:30:37 +0000 (20:30 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 23 Jul 2009 19:30:37 +0000 (20:30 +0100)
commitd26e085c269e66c645a54ee2bf8bec43933fee37
treead890ab1f667b7528e347e1886a9b7daf6f6c168
parent8cb0e08ea6a50db8f60386cef80c176481efb6c2
dm raid1: wake kmirrord when requeueing delayed bios after remote recovery

The recent commit 4cd5b1d683cf40b0d25172e64ca3eebabdc323f5 (dm raid1:
add is_remote_recovering hook for clusters) changed do_writes() to
update the ms->writes list but forgot to wake up kmirrord to process it.

The rule is that when anything is being added on ms->reads, ms->writes
or ms->failures and the list was empty before we must call
wakeup_mirrord (for immediate processing) or delayed_wake (for delayed
processing).  Otherwise the bios could sit on the list indefinitely.

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