linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Frédéric Weisbecker" <fweisbec@gmail.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: Ingo Molnar <mingo@elte.hu>, Al Viro <viro@zeniv.linux.org.uk>,
	Alessio Igor Bogani <abogani@texware.it>,
	Jonathan Corbet <corbet@lwn.net>,
	Peter Zijlstra <a.p.zijlstra@chello.nl>,
	LKML <linux-kernel@vger.kernel.org>,
	LFSDEV <linux-fsdevel@vger.kernel.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Matthew Wilcox <matthew@wil.cx>
Subject: Re: [PATCH 1/1] vfs: umount_begin BKL pushdown v2
Date: Fri, 24 Apr 2009 11:16:18 +0200	[thread overview]
Message-ID: <c62985530904240216j2760e3dbvca5b8e9da22d009f@mail.gmail.com> (raw)
In-Reply-To: <20090424085017.GB28592@infradead.org>

2009/4/24 Christoph Hellwig <hch@infradead.org>:
>> Furthermore, by doing this you are also hindering the
>> tip:kill-the-BKL effort (which has been ongoing for a year chipping
>> away at various BKL details) which facilitated these changes.
>> Alessio did these fixes to fix bugs he can trigger in that tree.
>>
>> You've also not explained why you have done it this way. It would
>> cost you almost nothing to apply these bits into a separate branch
>> and merge that branch into your main tree. Lots of other maintainer
>> are doing that.
>
> Having a separate kill the BKL tree is a stupid idea.  Locking changes
> need deep subsystem knowledge and should always go through the subsystem
> trees.


I disagree with you. The kill-the-BKL tree does not only aggregate patches
to turn the BKL into more traditional locks. The Bkl has been
converted to a common mutex in
this tree, making it losing its common horrid properties:

- release/reacquire on schedule
- not preemptable
- can be reacquired recursively by a same task

Such a basis is very useful because we can easily find these places
which won't support a usual lock conversion without reworking the
locking scheme.
This is a necessary preliminary for the Bkl removal.
All the places which have been designed very tightly with Bkl
properties are rapidly detected
with lockdep in this tree and reworked, still using lockdep, code
reviewing and the help of
this Bkl-to-mutex conversion.

The work done with this tree can be merged inside and also on the
matching subsytem tree for
each patchset. That's a very sane workflow IMHO.

Thanks,
Frederic.

  reply	other threads:[~2009-04-24  9:16 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-23 19:12 [PATCH 0/5 -tip] umount_begin BKL pushdown Alessio Igor Bogani
2009-04-23 19:12 ` [PATCH 1/5 -tip] 9p: " Alessio Igor Bogani
2009-04-23 19:12   ` [PATCH 2/5 -tip] cifs: " Alessio Igor Bogani
2009-04-23 19:12     ` [PATCH 3/5 -tip] fuse: " Alessio Igor Bogani
2009-04-23 19:12       ` [PATCH 4/5 -tip] nfs: " Alessio Igor Bogani
2009-04-23 19:12         ` [PATCH 5/5 -tip] vfs: Don-t call umount_begin with BKL held Alessio Igor Bogani
2009-04-23 19:15     ` [PATCH 2/5 -tip] cifs: umount_begin BKL pushdown Al Viro
2009-04-23 19:19     ` Matthew Wilcox
2009-04-24  7:06       ` [PATCH 0/1] vfs: umount_begin BKL pushdown v2 Alessio Igor Bogani
2009-04-24  7:06         ` [PATCH 1/1] " Alessio Igor Bogani
2009-04-24  7:13           ` Al Viro
2009-04-24  7:15             ` Al Viro
2009-04-24  8:48               ` Christoph Hellwig
2009-04-24  7:18             ` Al Viro
2009-04-24  7:41               ` Alessio Igor Bogani
2009-04-24  8:06               ` Ingo Molnar
2009-04-24  8:50                 ` Christoph Hellwig
2009-04-24  9:16                   ` Frédéric Weisbecker [this message]
2009-04-24 17:50                     ` Christoph Hellwig
2009-04-24 18:55                       ` Al Viro
2009-04-24 19:02                         ` Christoph Hellwig
2009-04-24 20:43                           ` Al Viro
2009-04-24 22:07                       ` Ingo Molnar
2009-04-24 22:49                   ` Ingo Molnar
2009-04-24 13:58                 ` Al Viro
2009-04-24 22:19                   ` Ingo Molnar
2009-04-25  7:16                     ` Al Viro
2009-04-23 19:18 ` [PATCH 0/5 -tip] umount_begin BKL pushdown Al Viro
2009-04-23 21:32   ` Ingo Molnar
2009-04-24  1:57     ` Stephen Rothwell
2009-04-24 14:31       ` Jonathan Corbet

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=c62985530904240216j2760e3dbvca5b8e9da22d009f@mail.gmail.com \
    --to=fweisbec@gmail.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=abogani@texware.it \
    --cc=corbet@lwn.net \
    --cc=hch@infradead.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthew@wil.cx \
    --cc=mingo@elte.hu \
    --cc=torvalds@linux-foundation.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).