Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1451934 > unrolled thread

[GIT PULL] configfs updates for 4.8

Started byChristoph Hellwig <hch@infradead.org>
First post2016-07-28 15:40 +0200
Last post2016-07-29 10:00 +0200
Articles 8 — 4 participants

Back to article view | Back to linux.kernel


Contents

  [GIT PULL] configfs updates for 4.8 Christoph Hellwig <hch@infradead.org> - 2016-07-28 15:40 +0200
    Re: [GIT PULL] configfs updates for 4.8 Linus Torvalds <torvalds@linux-foundation.org> - 2016-07-28 22:10 +0200
      Re: [GIT PULL] configfs updates for 4.8 Al Viro <viro@ZenIV.linux.org.uk> - 2016-07-28 22:20 +0200
        Re: [GIT PULL] configfs updates for 4.8 Linus Torvalds <torvalds@linux-foundation.org> - 2016-07-28 22:30 +0200
          Re: [GIT PULL] configfs updates for 4.8 James Bottomley <James.Bottomley@HansenPartnership.com> - 2016-07-29 00:10 +0200
      Re: [GIT PULL] configfs updates for 4.8 Christoph Hellwig <hch@infradead.org> - 2016-07-29 09:20 +0200
        Re: [GIT PULL] configfs updates for 4.8 Christoph Hellwig <hch@infradead.org> - 2016-07-29 10:00 +0200
    [GIT PULL] configfs updates for 4.8 Christoph Hellwig <hch@infradead.org> - 2016-07-29 10:00 +0200

#1451934 — [GIT PULL] configfs updates for 4.8

FromChristoph Hellwig <hch@infradead.org>
Date2016-07-28 15:40 +0200
Subject[GIT PULL] configfs updates for 4.8
Message-ID<rZTHA-6SS-23@gated-at.bofh.it>
Hi Linus,

The following changes since commit 3dc3afadeb0403fd967b97ee282ab9053d36da2b:

  configfs: don't set buffer_needs_fill to zero if show() returns error (2016-07-10 21:02:18 +0900)

are available in the git repository at:

  git://git.infradead.org/users/hch/configfs.git tags/configfs-for-4.8

for you to fetch changes up to 3dc3afadeb0403fd967b97ee282ab9053d36da2b:

  configfs: don't set buffer_needs_fill to zero if show() returns error (2016-07-10 21:02:18 +0900)

----------------------------------------------------------------
configfs updates for 4.8:

 - a simple error handling fix from Tal Shorer

----------------------------------------------------------------

[toc] | [next] | [standalone]


#1452083

FromLinus Torvalds <torvalds@linux-foundation.org>
Date2016-07-28 22:10 +0200
Message-ID<rZZN0-2Fu-19@gated-at.bofh.it>
In reply to#1451934
On Thu, Jul 28, 2016 at 6:30 AM, Christoph Hellwig <hch@infradead.org> wrote:
>
>   git://git.infradead.org/users/hch/configfs.git tags/configfs-for-4.8
>
> for you to fetch changes up to 3dc3afadeb0403fd967b97ee282ab9053d36da2b:

Same lack of diffstat..

There's a reason we have a "git request-pull" helper. You don't have
to use it (lots of people end up using other things that match their
workflow better), but you do have to generate something at least as
good at that.

        Linus

[toc] | [prev] | [next] | [standalone]


#1452088

FromAl Viro <viro@ZenIV.linux.org.uk>
Date2016-07-28 22:20 +0200
Message-ID<rZZWF-2J2-3@gated-at.bofh.it>
In reply to#1452083
On Thu, Jul 28, 2016 at 01:05:13PM -0700, Linus Torvalds wrote:
> On Thu, Jul 28, 2016 at 6:30 AM, Christoph Hellwig <hch@infradead.org> wrote:
> >
> >   git://git.infradead.org/users/hch/configfs.git tags/configfs-for-4.8
> >
> > for you to fetch changes up to 3dc3afadeb0403fd967b97ee282ab9053d36da2b:
> 
> Same lack of diffstat..
> 
> There's a reason we have a "git request-pull" helper. You don't have
> to use it (lots of people end up using other things that match their
> workflow better), but you do have to generate something at least as
> good at that.

FWIW, git request-pull is very likely to make complete mess of
diffstat - all it takes is branch started at -rc1, then a merge from
anything started at later point (e.g. Miklos asking to pull ->d_real()
work from his tree into vfs.git, with his branch starting at -rc5).

I've ended up doing git fetch origin; git checkout -b XXX origin; git
merge work.misc; git diff XXX --stat and replacing the mess produced by
git-request-pull with that.  It works, of course, but what worries me
is that less obvious mess could've slipped unnoticed.  Might make sense
to teach git request-pull to warn about likely bogus diffstat...

[toc] | [prev] | [next] | [standalone]


#1452092

FromLinus Torvalds <torvalds@linux-foundation.org>
Date2016-07-28 22:30 +0200
Message-ID<s006m-2MG-13@gated-at.bofh.it>
In reply to#1452088
On Thu, Jul 28, 2016 at 1:18 PM, Al Viro <viro@zeniv.linux.org.uk> wrote:
>
> FWIW, git request-pull is very likely to make complete mess of
> diffstat - all it takes is branch started at -rc1, then a merge from
> anything started at later point (e.g. Miklos asking to pull ->d_real()
> work from his tree into vfs.git, with his branch starting at -rc5).

Yes. git request-pull doesn't do a real merge, and if you have
multiple merge bases, the diffstat is usually garbage (because you
also end up getting diffs that are all about the differences in merge
bases, not the branch itself).

So people who have more complex git history are certainly encouraged to

 (a) do their own test-merge anyway, just to see that everything is
fine, and to be able to report to me about merge conflicts

 (b) use the result of that test-merge to generate a better diff-stat
than git request-pull does.

So yes, people who have more complex git trees are very much welcome
to improve on git request-pull output. It's aoppreciated.

What is *not* appreciated is when people send something worse ;)

git request-pull tends to do really well for simple and
straightforward git users, which is what it's geared towards. If you
have linear history and don't do back-merges (which you shouldn't do
unless you really really know what you are doing anyway), you'll never
see the limitations of the stupid "just diff against the merge base"
approach.

            Linus

[toc] | [prev] | [next] | [standalone]


#1452143

FromJames Bottomley <James.Bottomley@HansenPartnership.com>
Date2016-07-29 00:10 +0200
Message-ID<s01F7-3X8-11@gated-at.bofh.it>
In reply to#1452092
On Thu, 2016-07-28 at 13:24 -0700, Linus Torvalds wrote:
> On Thu, Jul 28, 2016 at 1:18 PM, Al Viro <viro@zeniv.linux.org.uk>
> wrote:
> > 
> > FWIW, git request-pull is very likely to make complete mess of
> > diffstat - all it takes is branch started at -rc1, then a merge
> > from
> > anything started at later point (e.g. Miklos asking to pull 
> > ->d_real()
> > work from his tree into vfs.git, with his branch starting at -rc5).
> 
> Yes. git request-pull doesn't do a real merge, and if you have
> multiple merge bases, the diffstat is usually garbage (because you
> also end up getting diffs that are all about the differences in merge
> bases, not the branch itself).

Just in case it helps, this is what I do:

I keep a static base around for each tree.  Its the commit for which
git log base...HEAD only returns the commits I've pulled or committed
myself.  I think mathematically, if you do a pairwise comparison of all
the trees you've pulled, it ends up being the latest (tree relative)
foreign commit that doesn't appear in any other tree you've pulled.

if you can't be bothered to calculate it, then you can always merge up
to some point in Linus' head beyond yours and that then becomes your
base.

I store it in a xxx-base branch for the xxx tree and then do

git diff --stat -M --summary  xxx-base...xxx

James


> So people who have more complex git history are certainly encouraged
> to
> 
>  (a) do their own test-merge anyway, just to see that everything is
> fine, and to be able to report to me about merge conflicts
> 
>  (b) use the result of that test-merge to generate a better diff-stat
> than git request-pull does.
> 
> So yes, people who have more complex git trees are very much welcome
> to improve on git request-pull output. It's aoppreciated.
> 
> What is *not* appreciated is when people send something worse ;)
> 
> git request-pull tends to do really well for simple and
> straightforward git users, which is what it's geared towards. If you
> have linear history and don't do back-merges (which you shouldn't do
> unless you really really know what you are doing anyway), you'll 
> never see the limitations of the stupid "just diff against the merge 
> base" approach.
> 
>             Linus

[toc] | [prev] | [next] | [standalone]


#1452280

FromChristoph Hellwig <hch@infradead.org>
Date2016-07-29 09:20 +0200
Message-ID<s0afo-1tL-15@gated-at.bofh.it>
In reply to#1452083
On Thu, Jul 28, 2016 at 01:05:13PM -0700, Linus Torvalds wrote:
> On Thu, Jul 28, 2016 at 6:30 AM, Christoph Hellwig <hch@infradead.org> wrote:
> >
> >   git://git.infradead.org/users/hch/configfs.git tags/configfs-for-4.8
> >
> > for you to fetch changes up to 3dc3afadeb0403fd967b97ee282ab9053d36da2b:
> 
> Same lack of diffstat..
> 
> There's a reason we have a "git request-pull" helper. You don't have
> to use it (lots of people end up using other things that match their
> workflow better), but you do have to generate something at least as
> good at that.

Both pull requests were generated using git request-pull from git
2.1.4.

[toc] | [prev] | [next] | [standalone]


#1452295

FromChristoph Hellwig <hch@infradead.org>
Date2016-07-29 10:00 +0200
Message-ID<s0aS6-1HF-31@gated-at.bofh.it>
In reply to#1452280
On Fri, Jul 29, 2016 at 12:11:23AM -0700, Christoph Hellwig wrote:
> Both pull requests were generated using git request-pull from git
> 2.1.4.

Looks like I was tired enough to mess up the confusing arguments to
git request-pull once again.  I'll resend both requests.

[toc] | [prev] | [next] | [standalone]


#1452299

FromChristoph Hellwig <hch@infradead.org>
Date2016-07-29 10:00 +0200
Message-ID<s0aS6-1HF-39@gated-at.bofh.it>
In reply to#1451934
Hi Linus,

The following changes since commit ee40fb2948fc99096836995d4f3ddcc0efbac790:

  Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi (2016-07-08 18:59:46 -0700)

are available in the git repository at:

  git://git.infradead.org/users/hch/configfs.git tags/configfs-for-4.8

for you to fetch changes up to 3dc3afadeb0403fd967b97ee282ab9053d36da2b:

  configfs: don't set buffer_needs_fill to zero if show() returns error (2016-07-10 21:02:18 +0900)

----------------------------------------------------------------
configfs updates for 4.8:

 - a simple error handling fix from Tal Shorer

----------------------------------------------------------------
Tal Shorer (1):
      configfs: don't set buffer_needs_fill to zero if show() returns error

 fs/configfs/file.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web