linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Al Viro <viro@ZenIV.linux.org.uk>
To: Ingo Molnar <mingo@elte.hu>
Cc: Alessio Igor Bogani <abogani@texware.it>,
	Jonathan Corbet <corbet@lwn.net>,
	Fr??d??ric Weisbecker <fweisbec@gmail.com>,
	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: Sat, 25 Apr 2009 08:16:32 +0100	[thread overview]
Message-ID: <20090425071632.GZ8633@ZenIV.linux.org.uk> (raw)
In-Reply-To: <20090424221910.GB6403@elte.hu>

On Sat, Apr 25, 2009 at 12:19:10AM +0200, Ingo Molnar wrote:

> As i pointed it out in the first mail: our immediate concern is NFS 
> (nfs_get_sb() in particular), where we can reproduce real and easy 
> deadlocks with BKL-as-a-mutex. So if you could push this patch to 
> Linus (or just not NAK me cherry-picking your precise commit) that 
> would be enough to continue here.

I've no problems whatsoever with either variant.  If Linus is OK with
that for -rc4, there it goes.  However, that's not going to end there,
is it?  We have other methods, after all.  And several series of patches
that'll go near that one.  That's what I'm concerned about; I'm absolutely
fine with cherry-picks of something we can declare stable into any
exprimental trees.  As long as everyone agrees that this commit is in the
final form, that's it.

> Anyway - regarding this commit, doing it via a branch would have 
> been the most Git-ish way to solve it - and that's what i'm using in 
> equivalent situations - but if you rebase your tree often as 
> Christoph Hellwig suggests i can imagine that causing problems.
> 
> In fact, you do seem to have rebased a lot of commits just a couple 
> of days ago:

[snip]

picking the stuff for mainline merge out of it, pushing it to Linus,
reordering the rest and folding a fix into earlier changeset, IIRC.

> So yes, a branch with a stable commit is not possible for you to do. 

It is - I can merge from it into one being cherry-picked to hell and back
just fine.  The question is, how much will end up in that branch?

> Would you mind to describe the workflow that leads to such frequent 
> rebasing? The commit dates are nicely apart:

[snip]

> so these are not commits developed in the same minute as the 
> commit-date suggests. I.e. the whole tree got rebased at Apr 21 
> 17:55.

See above.  And if you'll look at the changeset dates, you'll see that
a lot of those had been done while on LSF2009 and grown fixes and fixes
to fixes since then.  It sat in #untested for a while, then fixes got
folded into patches and some reordering had been done.

It's not that I can't use "here's the branch that only grows" kind of
workflow, but
	a) there's a lot of things many people tend to use quilt for; I'm
using git + bunch of scripts to do the same.
	b) I separate development history from logical progression of patches
and on the short-term scale I'm much more interested in the latter.
	c) I really prefer see as few intertwined branches as possible.
Graph topology should be possible to understand...

I _can_ put out an unchanged branch just fine, and I understand the uses
for such animal.  If I'm willing to say that changeset is in final form -
sure, there it can go.  Useful when it acts as a base for other folks'
work, etc.  But for development work I've no problem whatsoever to do
reordering and folding.  Preferably in batches, but that's it.

IOW, my workflow probably would map on quilt, but I'd started with home-grown
set of scripts around diff+cp -rl+patch and with git I'd been able to do the
same thing even more conveniently.  Plain git is usable that way just fine;
I know about stgit et.al., but I hadn't seen a need for those...

And yes, I've heard Linus' "if you put a branch in public, never reorder it".
Fine, modulo s/public/& and not make it clear that it's not stable that way/.

  reply	other threads:[~2009-04-25  7: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
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 [this message]
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=20090425071632.GZ8633@ZenIV.linux.org.uk \
    --to=viro@zeniv.linux.org.uk \
    --cc=a.p.zijlstra@chello.nl \
    --cc=abogani@texware.it \
    --cc=corbet@lwn.net \
    --cc=fweisbec@gmail.com \
    --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 \
    /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).