Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 5 Jun 2002 18:25:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 5 Jun 2002 18:25:26 -0400 Received: from fachschaft.cup.uni-muenchen.de ([141.84.250.61]:13 "EHLO fachschaft.cup.uni-muenchen.de") by vger.kernel.org with ESMTP id ; Wed, 5 Jun 2002 18:25:26 -0400 Message-Id: <200206052219.g55MJa301032@fachschaft.cup.uni-muenchen.de> Content-Type: text/plain; charset=US-ASCII From: Oliver Neukum To: Patrick Mochel Subject: Re: device model documentation 2/3 Date: Wed, 5 Jun 2002 23:54:55 +0200 X-Mailer: KMail [version 1.3.1] Cc: , , In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, 5. Juni 2002 21:11 schrieb Patrick Mochel: > On Wed, 5 Jun 2002, Oliver Neukum wrote: > > > SUSPEND_DISABLE tells the device to stop I/O transactions. When it > > > stops transactions, or what it should do with unfinished transactions > > > is a policy of the driver. After this call, the driver should not > > > accept any other I/O requests. > > > > Does this mean that memory allocations in the suspend/resume > > implementations must be made with GFP_NOIO respectively > > GFP_ATOMIC ? > > It would seem so. > > Why would you allocate memory on a resume transition? We need to send messages to the device to restore state, don't we ? Any activity on USB can allocate memory. We've had to change the API to fix deadlock problems due to this already. Regards Oliver - 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/