aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-raid1.c
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2007-10-19 17:47:57 -0400
committerAlasdair G Kergon <agk@redhat.com>2007-10-19 21:01:21 -0400
commit6b3df0d7a5e85ad2afd3eecc50e2dee59e876ae8 (patch)
treed20f30d0a40d1162a6cc135dca31403ae38198e5 /drivers/md/dm-raid1.c
parentfe97e2aa0502922488ad62303a19a20c8044ae18 (diff)
dm log: split suspend
There are now two phases to a suspend in device-mapper - presuspend and postsuspend. This patch removes the single 'suspend' in the logging API and replaces it with 'presuspend' and 'postsuspend' functions to align it better with core device-mapper. A subsequent patch will make use of 'presuspend'. Signed-off-by: Jonathan Brassow <jbrassow@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-raid1.c')
-rw-r--r--drivers/md/dm-raid1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
index 2b2ca371e20b..8aafbb7ec574 100644
--- a/drivers/md/dm-raid1.c
+++ b/drivers/md/dm-raid1.c
@@ -1305,7 +1305,7 @@ static void mirror_postsuspend(struct dm_target *ti)
1305 wait_event(_kmirrord_recovery_stopped, 1305 wait_event(_kmirrord_recovery_stopped,
1306 !atomic_read(&ms->rh.recovery_in_flight)); 1306 !atomic_read(&ms->rh.recovery_in_flight));
1307 1307
1308 if (log->type->suspend && log->type->suspend(log)) 1308 if (log->type->postsuspend && log->type->postsuspend(log))
1309 /* FIXME: need better error handling */ 1309 /* FIXME: need better error handling */
1310 DMWARN("log suspend failed"); 1310 DMWARN("log suspend failed");
1311} 1311}