All of lore.kernel.org
 help / color / mirror / Atom feed
From: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
To: "Stephen C. Tweedie" <sct@redhat.com>
Cc: Andrew Morton <akpm@osdl.org>, Attila Body <compi@freemail.hu>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Christoph Hellwig <hch@lst.de>
Subject: Re: UDF madness
Date: Thu, 27 Jan 2005 09:59:18 +0000	[thread overview]
Message-ID: <20050127095918.GO8859@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <1106818204.1955.18.camel@sisko.sctweedie.blueyonder.co.uk>

On Thu, Jan 27, 2005 at 09:30:04AM +0000, Stephen C. Tweedie wrote:
> Hi,
> 
> On Thu, 2005-01-27 at 07:57, Al Viro wrote:
> 
> > 	Note that fs users of file_fsync() are definitely not going to be
> > involved into contention here - they need opened file => held active
> > reference to superblock.
> 
> > 	So we are left only with fs-internal asynchronous callers of
> > lock_super().  UDF, UFS, sysv, hpfs and ext2 are out of question - they
> > don't have async callers of that sort.  ext3... maybe, I'm not familiar
> > with resize code in there.  In any case, that'd better be fixed in
> > ext3 if such abuse exists.
> 
> ext3 resize is like file_fsync() --- it's an ioctl, so there's a
> guaranteed open file at that point.
> 
> But while the resize code originally used lock_super() to protect from
> races against allocation/deallocation, the ordering fixes in it means
> that that's all safe anyway now.  The lock_super() is currently only
> really used to guard against two threads doing resize at the same time,
> and if it's a problem, it would be trivial to use a different lock.

That's fine - it does make sense to move to separate lock, but in any
case we are safe against generic_shutdown_super().  And it means that
at least there (which is the source of UDF problems) lock_super() can die.

  reply	other threads:[~2005-01-27  9:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-25 21:24 UDF madness Attila Body
2005-01-27  4:11 ` Andrew Morton
2005-01-27  7:57   ` Al Viro
2005-01-27  9:30     ` Stephen C. Tweedie
2005-01-27  9:59       ` Al Viro [this message]
2005-01-27 10:03   ` Christoph Hellwig
2005-01-29 15:33   ` Christoph Hellwig

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=20050127095918.GO8859@parcelfarce.linux.theplanet.co.uk \
    --to=viro@parcelfarce.linux.theplanet.co.uk \
    --cc=akpm@osdl.org \
    --cc=compi@freemail.hu \
    --cc=hch@lst.de \
    --cc=linux-kernel@vger.kernel.org \
    --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.