Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964823AbVJMAJg (ORCPT ); Wed, 12 Oct 2005 20:09:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964825AbVJMAJg (ORCPT ); Wed, 12 Oct 2005 20:09:36 -0400 Received: from mail.shareable.org ([81.29.64.88]:1506 "EHLO mail.shareable.org") by vger.kernel.org with ESMTP id S964823AbVJMAJf (ORCPT ); Wed, 12 Oct 2005 20:09:35 -0400 Date: Thu, 13 Oct 2005 01:09:21 +0100 From: Jamie Lokier To: Mikulas Patocka Cc: Jeff Mahoney , Anton Altaparmakov , Glauber de Oliveira Costa , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, ext2-devel@lists.sourceforge.net, hirofumi@mail.parknet.co.jp, linux-ntfs-dev@lists.sourceforge.net, aia21@cantab.net, hch@infradead.org, viro@zeniv.linux.org.uk, akpm@osdl.org Subject: Re: [PATCH] Use of getblk differs between locations Message-ID: <20051013000921.GD23770@mail.shareable.org> References: <20051010214605.GA11427@br.ibm.com> <1129017155.12336.4.camel@imp.csi.cam.ac.uk> <434D6932.1040703@suse.com> <434D6CFA.4080802@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 973 Lines: 23 Mikulas Patocka wrote: > But discarding data sometimes on USB unplug is even worse than discarding > data always --- users will by experimenting learn that linux doesn't > discard write-cached data and reminds them to replug the device --- and > one day, randomly, they lose their data because of some memory management > condition... It should not happen provided the total amount of dirty data for detachable devices is restricted to allow enough room for opening a dialog. That's no different, in principle, than the restrictions that are used to ensure some types of kernel memory allocation always succeed. There's no exact calculation, just a notion of "this many megabytes should be enough for a dialog". -- Jamie - 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/