mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Alexander Viro <viro@parcelfarce.linux.theplanet.co.uk>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] First casuality of hlist poisoning in 2.5.70
Date: Wed, 11 Jun 2003 23:04:23 -0700	[thread overview]
Message-ID: <16104.6119.365469.836306@charged.uio.no> (raw)
In-Reply-To: <Pine.LNX.4.44.0306112206430.29133-100000@home.transmeta.com>

>>>>> " " == Linus Torvalds <torvalds@transmeta.com> writes:

     > But I suspect that neither dentry nor target should really ever
     > be unhashed by the time we call d_move(). That's reinforced by
     > the fact that it looks like a unhashed dentry in d_move() would
     > have been a silent bug previously - staying unhashed if it just
     > shared the bucket.

It is not a bug.

Looking more carefully at the Oops, it seems that this problem is
occurring inside an nfs_rename() in which the target name belongs to
an open file - and thus needs to be sillyrenamed first.

In that case, we certainly do not want to rehash the dentry in order
to do the d_move() since that would give rise to a race: we want to do
a real rename into the same dentry after we're done with the
sillyrename.

I can agree that the patch was flawed, but I still believe that we do
need to allow d_move to work with unhashed dentries.

Cheers,
  Trond

  reply	other threads:[~2003-06-12  5:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-11 23:34 Trond Myklebust
2003-06-11 23:50 ` Linus Torvalds
2003-06-12  0:04   ` Trond Myklebust
2003-06-12  0:32     ` Linus Torvalds
2003-06-12  5:22 ` Linus Torvalds
2003-06-12  6:04   ` Trond Myklebust [this message]
2003-06-12  7:30   ` Trond Myklebust
2003-06-12 16:26   ` viro
2003-06-19 23:01     ` Paul E. McKenney

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=16104.6119.365469.836306@charged.uio.no \
    --to=trond.myklebust@fys.uio.no \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    --cc=viro@parcelfarce.linux.theplanet.co.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

all inboxes | Powered by JetHome®