From: Andrew Morton <akpm@linux-foundation.org>
To: dedekind1@gmail.com
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>,
Linux Kernel Maling List <linux-kernel@vger.kernel.org>,
Linux FS Maling List <linux-fsdevel@vger.kernel.org>,
Jens Axboe <axboe@kernel.dk>, Al Viro <viro@ZenIV.linux.org.uk>
Subject: Re: [PATCH v1 0/3] do not use s_dirt in FAT FS
Date: Fri, 13 Apr 2012 00:26:56 -0700 [thread overview]
Message-ID: <20120413002656.b67e58ad.akpm@linux-foundation.org> (raw)
In-Reply-To: <1334299108.2544.68.camel@sauron.fi.intel.com>
On Fri, 13 Apr 2012 09:38:28 +0300 Artem Bityutskiy <dedekind1@gmail.com> wrote:
> > That implies that we retain ->write_super, probably in a modified form.
> > Modified to permit the VFS to determine whether the superblock needs
> > treatment, if ->s_dirt doesn't suffice.
>
> I tried this approach and it was vetoed by Al Viro. Although it is
> simpler to me to resurrect my old patches, I agree with Al that killing
> '->write_super()' is a better approach.
Well, it can be done without a super_operation vector - pass the
library code a superblock* and a function address. But the difference
is pointless fluff.
> We do not want to serve a whole
> kernel thread in the generic code for few baroque citizens.
One could refcount the thread, but I think I misread the code - the
amount of generic boilerplate which was added to the fs is in fact
pretty small.
> Please, see this thread for the reference:
> http://lkml.org/lkml/2010/7/22/96
>
> > The code as you've proposed it will cause more wakeups than needed - if
> > multiple filesystems are mounted and active, their timers will get out
> > of sync. Which rather defeats the intent of the whole work! This
> > problem should be addressable via some new centralised way of managing
> > things.
>
> I do not think this is an issue. If we have many file-systems, and all
> of them are actively used so that the super block becomes dirty, which
> most probably means there is also write-back - so be it, it is ok to arm
> many timers. And if we make them deferrable for most of the FSes (which
> we can not do for the generic timer, because we do not know FSes needs)
> - then this is not an issue at all.
OK.
> Also, if you look at this from the angle that only few old FSes will
> have this, it becomes not that bad. I assume I will change this
> patch-set and won't use delayed works here.
I don't think I understand that. You intend to alter this patchset?
next prev parent reply other threads:[~2012-04-13 7:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-11 11:45 [PATCH v1 0/3] do not use s_dirt in FAT FS Artem Bityutskiy
2012-04-11 11:45 ` [PATCH v1 1/3] fat: introduce fat_mark_fsinfo_dirty helper Artem Bityutskiy
2012-04-11 11:45 ` [PATCH v1 2/3] fat: mark fsinfo as dirty less often Artem Bityutskiy
2012-04-11 11:45 ` [PATCH v1 3/3] fat: self-manage own fsinfo block Artem Bityutskiy
2012-04-13 0:12 ` [PATCH v1 0/3] do not use s_dirt in FAT FS Andrew Morton
2012-04-13 6:38 ` Artem Bityutskiy
2012-04-13 7:26 ` Andrew Morton [this message]
2012-04-13 8:45 ` Artem Bityutskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120413002656.b67e58ad.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=axboe@kernel.dk \
--cc=dedekind1@gmail.com \
--cc=hirofumi@mail.parknet.co.jp \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@ZenIV.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).