On Thu, 13 Oct 2005, Jamie Lokier wrote:
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 is possible ... you must also make sure that you do not hold an important semaphore while waiting for some removable device (auditing VFS for this will be a bit harder...)
Mikulas
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/
- Follow-Ups:
- Re: [PATCH] Use of getblk differs between locations
- From: Jamie Lokier <jamie@shareable.org>
- Re: [PATCH] Use of getblk differs between locations
- References:
- Re: [PATCH] Use of getblk differs between locations
- From: Anton Altaparmakov <aia21@cam.ac.uk>
- Re: [PATCH] Use of getblk differs between locations
- From: Glauber de Oliveira Costa <glommer@br.ibm.com>
- Re: [PATCH] Use of getblk differs between locations
- From: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
- Re: [PATCH] Use of getblk differs between locations
- From: Anton Altaparmakov <aia21@cam.ac.uk>
- Re: [PATCH] Use of getblk differs between locations
- From: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
- Re: [PATCH] Use of getblk differs between locations
- From: Anton Altaparmakov <aia21@cam.ac.uk>
- Re: [PATCH] Use of getblk differs between locations
- From: Jeff Mahoney <jeffm@suse.com>
- Re: [PATCH] Use of getblk differs between locations
- From: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
- Re: [PATCH] Use of getblk differs between locations
- From: Jeff Mahoney <jeffm@suse.com>
- Re: [PATCH] Use of getblk differs between locations
- From: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
- Re: [PATCH] Use of getblk differs between locations
- From: Jamie Lokier <jamie@shareable.org>
- Re: [PATCH] Use of getblk differs between locations
- Prev by Date: Re: [discuss] [Patch 1/2] x86, x86_64: Intel HT, Multi core detection fixes
- Next by Date: Re: [PATCH] Use of getblk differs between locations
- Previous by thread: Re: [PATCH] Use of getblk differs between locations
- Next by thread: Re: [PATCH] Use of getblk differs between locations
- Index(es):
![]() |