From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takahiro Yasui Subject: [RFC][PATCH 3/3] dm-delay: add cancel_presuspend function Date: Tue, 19 Jan 2010 15:41:34 -0500 Message-ID: <4B5618FE.4020303@redhat.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development List-Id: dm-devel.ids 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 --- 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.