Re: [RFC] ext3 freeze feature

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Theodore Tso <tytso@...>
Cc: Takashi Sato <t-sato@...>, <linux-ext4@...>, <linux-fsdevel@...>, <linux-kernel@...>
Date: Thursday, January 31, 2008 - 4:53 am

On Friday 25 January 2008 05:33, Theodore Tso wrote:

Hi Ted,

There are a few holes:

  * The process may try to handle the signal and end up blocking on
     the filesystem again.

  * The process might pass the fd to another process by forking or
     fd passing.

  * The process holding the fd might be trying to take a lock held
     by another process that is blocked on the filesystem, and infinite
     variations on that theme.

Remembering the task that did the ioctl might work out better than
remembering the fd.   Or just not try to be so fancy and rely on the
application to take appropriate measures to ensure it will not access
the filesystem, such as memlocking and not execing.

The freezer also needs to run in PF_MEMALLOC mode or similar
unless it can be sure it will not cause pageout to the frozen filesystem
under low memory conditions.

Regards,

Daniel
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] ext3 freeze feature, Takashi Sato, (Fri Jan 25, 6:59 am)
Re: [RFC] ext3 freeze feature, David Chinner, (Sat Jan 26, 1:35 am)
Re: [RFC] ext3 freeze feature, David Chinner, (Sat Jan 26, 1:39 am)
Re: [RFC] ext3 freeze feature, Dmitri Monakhov, (Fri Jan 25, 8:18 am)
Re: [RFC] ext3 freeze feature, Theodore Tso, (Fri Jan 25, 9:33 am)
Re: [RFC] ext3 freeze feature, Daniel Phillips, (Thu Jan 31, 4:53 am)
Re: [RFC] ext3 freeze feature, Eric Sandeen, (Fri Jan 25, 12:34 pm)
Re: [RFC] ext3 freeze feature, Theodore Tso, (Fri Jan 25, 12:42 pm)
Re: [RFC] ext3 freeze feature, Pavel Machek, (Sat Feb 2, 9:52 am)
Re: [RFC] ext3 freeze feature, Pekka Enberg, (Fri Jan 25, 7:17 am)