All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@digeo.com>
To: Bryan Henderson <hbryan@us.ibm.com>
Cc: "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
	Chris Mason <mason@suse.com>,
	"Stephen C. Tweedie" <sct@redhat.com>
Subject: Re: [PATCH] 2.5.x write_super is not for syncing
Date: Tue, 03 Dec 2002 12:06:58 -0800	[thread overview]
Message-ID: <3DED0EE2.ECE22229@digeo.com> (raw)
In-Reply-To: OFBA2892B8.A75BE466-ON87256C84.0069FF6B-88256C84.006BAB95@boulder.ibm.com

Bryan Henderson wrote:
> 
> ...
> But of course a ->write_super call is the only evidence I have that the
> user did a sync(), which is something I need to know.

You and the rest of the world.

>  Unfortunately, a
> ->write_super call can also simply mean kupdated is doing its periodic
> thing.  So the code I had to write to implement sync(), while not looking
> like ext2 in a bunch of other ways, horribly abuses the interface, works
> differently on different versions of Linux, and in some circumstances isn't
> even 100% correct.
> 
> A driver for the same filesystem type on AIX has no problem because AIX has
> an equivalent to ->sync_fs and nothing like ->write_super (AIX VFS is more
> general -- doesn't pretend to know about things like super blocks).
> 
> So this change looks like it makes Linux as hospitable as AIX to STFS, but
> here's where it appears to fall short:  It still uses the same VFS call to
> implement the sync() system call as to implement kupdated's purpose.
> Could there be a separate function or an argument, or do I have to continue
> looking at the process name to distinguish them?

Oh darn.  Yes, both kupdate and sync call sync_supers().  But
kupdate should not call ->sync_fs.

I'll fix that up.  The intent is that ->sync_fs() should only be
called for sync, unmount, etc.

  reply	other threads:[~2002-12-03 20:06 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-16 18:00 [PATCH] 2.5.x write_super is not for syncing Chris Mason
2002-12-02 22:07 ` Andrew Morton
2002-12-02 23:40   ` Chris Mason
2002-12-03  0:03     ` Andrew Morton
2002-12-03  1:10       ` Chris Mason
2002-12-03  1:40         ` Andrew Morton
2002-12-03  3:09           ` Andrew Morton
2002-12-03 19:36             ` Bryan Henderson
2002-12-03 20:06               ` Andrew Morton [this message]
2002-12-03 21:41                 ` Bryan Henderson
2002-12-03 22:13                   ` Andrew Morton
2002-12-04  2:05                     ` Bryan Henderson
2002-12-04  4:29                       ` Andrew Morton
2002-12-04 19:00                         ` Bryan Henderson
2002-12-04 19:23                           ` Matthew Wilcox
2002-12-04 22:17                             ` Bryan Henderson
2002-12-05 10:36                               ` Arnaldo Carvalho de Melo
2002-12-05 16:31                                 ` Stephen C. Tweedie
2002-12-05 17:24                                   ` girish
2002-12-04 21:10                       ` Stephen C. Tweedie
2002-12-04 22:46                         ` Bryan Henderson

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=3DED0EE2.ECE22229@digeo.com \
    --to=akpm@digeo.com \
    --cc=hbryan@us.ibm.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=mason@suse.com \
    --cc=sct@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.