Re: [patch 00/27] [rfc] vfs scalability patchset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Al Viro <viro@xxxxxxxxxxxxxxxxxx> writes:

> On Sat, Apr 25, 2009 at 12:08:16PM -0700, Eric W. Biederman wrote:
>
>> Can we?  My first glance at that code I asked myself if we could examine
>> i_writecount, instead of going to the file. My impression was that we
>> were deliberately only counting persistent write references from files
>
> No, there's nothing deliberate about that.  The code is simply wrong;
> some of that crap had been fixed with mnt_want_write series, but
> the rest...
>
>> instead of transient write references.  As only the persistent write
>> references matter.  Transient write references can at least in theory
>> be flushed as the filesystem is remounting read-only.
>
> No.  It's far too painful to do and no fs is doing that.  You are looking
> for deliberate behaviour in a place where we have a half-fixed pile of races.

I didn't trace it all of the way through but this comment in
ext3_remount fooled me:

	/*
	 * We have to unlock super so that we can wait for
	 * transactions.
	 */

Which was enough to think it might have been deliberate behavior so I figured
it was worth asking.  It looked like the journal commit logic could have
been doing the blocking magic to wait on ongoing truncates and the like.

Still even it was deliberate it is the job of user space to remove all writers
before we remount read-only, and making the guarantee that we pass to the
filesystems that the fs is read-only stronger should not hurt anything.

Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux