Re: [RFC] ext3 freeze feature

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Takashi Sato <t-sato@...>
Cc: <linux-ext4@...>, <linux-fsdevel@...>, <linux-kernel@...>
Date: Saturday, January 26, 2008 - 1:35 am

On Fri, Jan 25, 2008 at 07:59:38PM +0900, Takashi Sato wrote:

Seems like pointless complexity to me - what happens if a
timeout occurs while the filsystem is still freezing?

It's not uncommon for a freeze to take minutes if memory
is full of dirty data that needs to be flushed out, esp. if
dm-snap is doing COWs for every write issued....

....
....
....
.....

That's inherently unsafe - you can have multiple unfreezes
running in parallel which seriously screws with the bdev semaphore
count that is used to lock the device due to doing multiple up()s
for every down.

Your timeout thingy guarantee that at some point you will get
multiple up()s occuring due to the timer firing racing with
a thaw ioctl. 

If this interface is to be more widely exported, then it needs
a complete revamp of the bdev is locked while it is frozen so
that there is no chance of a double up() ever occuring on the
bd_mount_sem due to racing thaws.....

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group
--
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)