Re: [PATCH 1/3] Implement generic freeze feature

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Takashi Sato <t-sato@...>
Cc: Andrew Morton <akpm@...>, linux-fsdevel@vger.kernel.org <linux-fsdevel@...>, dm-devel@redhat.com <dm-devel@...>, viro@ZenIV.linux.org.uk <viro@...>, linux-ext4@vger.kernel.org <linux-ext4@...>, xfs@oss.sgi.com <xfs@...>, Christoph Hellwig <hch@...>, axboe@kernel.dk <axboe@...>, mtk.manpages@googlemail.com <mtk.manpages@...>, linux-kernel@vger.kernel.org <linux-kernel@...>
Date: Friday, August 22, 2008 - 2:14 pm

On Mon, Aug 18, 2008 at 09:28:19PM +0900, Takashi Sato wrote:

Now you have a reference counter of freezes which actually is pretty
sensible, but also needs some documentation.  What I don't understand
here at all is why you do the get_super/drop_super in the already frozen
case.

Now that the freeze_count has replaced one of the uses of bd_mount_sem
you should also replace the other use in the unmount path by simply
checking for the freez_count and abort if it's set.  To do so you'll
need to hold the bd_mount_sem over the whole unmount operation to
prevent new frezes from coming in.

As others noted it should be a mutex and not a semaphore.


This is not quite kerneldcoc format, which would ne a /** as commnt
start.  But I don't think the comment is actually needed, it's a pretty
obvious file scope function. (Same commnt also applies to ioctl_thaw)


I don't understand this commnt.  What you are checking is that the
filesystem has a non-NULL s_bdev, which implies a not blockdevice-backed
filesystem.

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

Messages in current thread:
[PATCH 1/3] Implement generic freeze feature, Takashi Sato, (Mon Aug 18, 8:28 am)
Re: [PATCH 1/3] Implement generic freeze feature, Eric Sandeen, (Thu Sep 4, 12:55 pm)
Re: [PATCH 1/3] Implement generic freeze feature, Takashi Sato, (Thu Sep 11, 6:58 am)
Re: [PATCH 1/3] Implement generic freeze feature, Christoph Hellwig, (Fri Aug 22, 2:14 pm)
Re: [PATCH 1/3] Implement generic freeze feature, Takashi Sato, (Fri Aug 29, 5:37 am)
Re: [PATCH 1/3] Implement generic freeze feature, Andrew Morton, (Thu Aug 21, 3:58 pm)
Re: [PATCH 1/3] Implement generic freeze feature, Takashi Sato, (Fri Aug 29, 5:36 am)
Re: [PATCH 1/3] Implement generic freeze feature, Andreas Dilger, (Fri Aug 22, 3:09 am)