Skip to contentSkip to conversation

dm-delay: add cancel_presuspend function

RFC PATCH In review Takahiro Yasui 1 participant 1 message Jan 19, 2010 Device mapper

lore
Share & tools
lore
#0 lore raw

RFC PATCH 3/3 dm-delay: add cancel_presuspend function

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

---
 drivers/md/dm-delay.c |    1 +
 1 file changed, 1 insertion(+)
drivers/md/dm-delay.c +1 -0
Index: 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,
Signature · 2 lines
Takahiro Yasui
Hitachi Computer Products (America), Inc.