From: Hugh Dickins <hugh@veritas.com>
To: Andrew Morton <akpm@digeo.com>
Cc: lkml <linux-kernel@vger.kernel.org>, <linux-fsdevel@vger.kernel.org>
Subject: Re: [patch] remove BKL from inode_setattr
Date: Mon, 14 Oct 2002 07:09:24 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.44.0210140657240.9845-100000@localhost.localdomain> (raw)
In-Reply-To: <3DAA4FD6.A18DAFE6@digeo.com>
On Sun, 13 Oct 2002, Andrew Morton wrote:
>
> Since April 05 of this year we've been holding the BKL across the
> vmtruncate call out of inode_setattr(). By accident it seems.
But until then, the lock_kernel was one level up in notify_change().
> This does not affect unlink(). It affects ftruncate() and open(O_TRUNC).
And the patch you give affects chown, chgrp, chmod, utime also:
removing a synchronization point if nothing more. Could that matter?
> Given that the drop_inode() path does not take the BKL, I would
> suggest that it is safe to assume that the various filesystem's
> truncate code is safe without this additional VFS-level lock_kernel(),
> and that it can be simply removed.
Isn't doing it when the references have gone rather easier/safer
than when they remain? I'm not sure your argument holds.
> Sound sane?
Of course I want you to be right! But I don't see that you've made
a strong enough case yet. Please show I'm being stupid, someone.
Hugh
next prev parent reply other threads:[~2002-10-14 6:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-14 5:02 Andrew Morton
2002-10-14 6:09 ` Hugh Dickins [this message]
2002-10-14 6:34 ` Andrew Morton
2002-10-14 14:07 ` Steve Lord
2002-10-14 16:41 ` Andrew Morton
2002-10-14 16:49 ` Steve Lord
2002-10-14 14:41 ` Dave Kleikamp
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=Pine.LNX.4.44.0210140657240.9845-100000@localhost.localdomain \
--to=hugh@veritas.com \
--cc=akpm@digeo.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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®