Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 2 Nov 2002 15:00:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 2 Nov 2002 15:00:18 -0500 Received: from nat-pool-rdu.redhat.com ([66.187.233.200]:50273 "EHLO devserv.devel.redhat.com") by vger.kernel.org with ESMTP id ; Sat, 2 Nov 2002 15:00:16 -0500 From: Alan Cox Message-Id: <200211022006.gA2K6XW08545@devserv.devel.redhat.com> Subject: Re: swsusp: don't eat ide disks To: pavel@ucw.cz (Pavel Machek) Date: Sat, 2 Nov 2002 15:06:33 -0500 (EST) Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org (kernel list), alan@redhat.com In-Reply-To: <20021102184735.GA179@elf.ucw.cz> from "Pavel Machek" at Nov 02, 2002 07:47:35 PM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 774 Lines: 21 > Here's patch to prevent random scribling over disks during > suspend... In the meantime alan killed (unreferenced at that time) > idedisk_suspend() and idedisk_release(), so I have to reintroduce > them. Please fix this at a different level. idedisk is not the place to be doing this. If the device layer is doing the right thing then the request queue will be idle. > + .gen_driver = { > + .suspend = idedisk_suspend, > + .resume = idedisk_resume, > + } Some disks are going to be settint their own power methods too. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/