All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH 3/3] dm-delay: add cancel_presuspend function
@ 2010-01-19 20:41 Takahiro Yasui
  0 siblings, 0 replies; only message in thread
From: Takahiro Yasui @ 2010-01-19 20:41 UTC (permalink / raw)
  To: device-mapper development

When suspend is interrupted after presuspend procedure, delay target
needs to be started because the target is not in the suspend status.


Signed-off-by: Takahiro Yasui <tyasui@redhat.com>
---
 drivers/md/dm-delay.c |    1 +
 1 file changed, 1 insertion(+)

Index: linux-2.6.33-rc1-dm/drivers/md/dm-delay.c
===================================================================
--- linux-2.6.33-rc1-dm.orig/drivers/md/dm-delay.c
+++ linux-2.6.33-rc1-dm/drivers/md/dm-delay.c
@@ -343,6 +343,7 @@ static struct target_type delay_target =
 	.dtr	     = delay_dtr,
 	.map	     = delay_map,
 	.presuspend  = delay_presuspend,
+	.cancel_presuspend  = delay_resume,
 	.resume	     = delay_resume,
 	.status	     = delay_status,
 	.iterate_devices = delay_iterate_devices,

-- 
Takahiro Yasui
Hitachi Computer Products (America), Inc.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-19 20:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-19 20:41 [RFC][PATCH 3/3] dm-delay: add cancel_presuspend function Takahiro Yasui

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.