Skip to contentSkip to conversation

linux-next: please clean up the livepatching tree

DISCUSSION Stephen Rothwell 3 participants 6 messages Aug 2, 2016 – Aug 5, 2016 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Jiri,

The livepatching tree
(git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching#for-next)
today consists of only lots of merges (and a patch that is also reverted). Please just reset it to somewhere in Linus' tree.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi Stephen

Quoted 3 lines · Stephen Rothwell

The livepatching tree
(git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching#for-next)
today consists of only lots of merges

This is a part we keep discussing from time to time, and I still don't understand why it bothers you so much. The only reason is to keep the branch non-rebasing, because it has downstreams. Code-wise, it's always equivalent to what end up being merged, but without the actual superfluous merge commits.

Quoted 1 line

(and a patch that is also reverted).

This of course is a good justification to rebase for-next exceptionally; so I've just that.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#2 lore raw

Hi Jiri,

Quoted 7 lines · On Wed, 3 Aug 2016 01:41:17 +0200 (CEST) Jiri Kosina <[email protected]> wrote:
Quoted 3 lines · Stephen Rothwell

The livepatching tree
(git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching#for-next)
today consists of only lots of merges

Quoted 5 lines

This is a part we keep discussing from time to time, and I still don't understand why it bothers you so much. The only reason is to keep the branch non-rebasing, because it has downstreams. Code-wise, it's always equivalent to what end up being merged, but without the actual superfluous merge commits.

The problem from my point of view is that git seems to take more time to merge the tree into linux-next (I know this isn't much for just one tree, but I currently have over 200 trees to merge each day). Also, having all those extra merges complicates the structure of my tree and presumably makes it harder for git to merge other trees. Its also possible (I have seen this in other trees) for the merge commits themselves to generate conflicts with (merge) commits in Linus' and other trees.

Also, I am not sure why you have a branch that ask Linus to merge separate from the branch you have me merge?

Quoted 4 lines
Quoted 1 line

(and a patch that is also reverted).

This of course is a good justification to rebase for-next exceptionally; so I've just that.

Thanks.

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 9 lines · Stephen Rothwell
Quoted 5 lines

This is a part we keep discussing from time to time, and I still don't understand why it bothers you so much. The only reason is to keep the branch non-rebasing, because it has downstreams. Code-wise, it's always equivalent to what end up being merged, but without the actual superfluous merge commits.

The problem from my point of view is that git seems to take more time to merge the tree into linux-next (I know this isn't much for just one tree, but I currently have over 200 trees to merge each day).

Because of merge commits the number of which is below 100? That's an interesting observation and quite unexpected bottleneck in git.

Quoted 8 lines

Also, having all those extra merges complicates the structure of my tree and presumably makes it harder for git to merge other trees. Its also possible (I have seen this in other trees) for the merge commits themselves to generate conflicts with (merge) commits in Linus' and other trees.

Also, I am not sure why you have a branch that ask Linus to merge separate from the branch you have me merge?

Exactly to avoid Linus' tree being polluted by the extra merge commits.

My workflow is really simple -- development happens in (a lot of) topic branches, and each and every time any of the topic branches is updated by a new commit, that topic branch gets merged into for-next.

Once code should go to Linus, the branches are merged at once into 'for-linus' brach, and it's guaranteed to be code-wise the same as what was gradually appearing in for-next.

What other workflow do you suggest for maintainers like me, who are using a lot of topic branches?

If this is so bothering for you, I'd just start instructing for-next downstreams to stop using that branch so that it could be easily rebased.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#4 lore raw
Quoted 31 lines · Jiri Kosina
Quoted 9 lines · Stephen Rothwell
Quoted 5 lines

This is a part we keep discussing from time to time, and I still don't understand why it bothers you so much. The only reason is to keep the branch non-rebasing, because it has downstreams. Code-wise, it's always equivalent to what end up being merged, but without the actual superfluous merge commits.

The problem from my point of view is that git seems to take more time to merge the tree into linux-next (I know this isn't much for just one tree, but I currently have over 200 trees to merge each day).

Because of merge commits the number of which is below 100? That's an interesting observation and quite unexpected bottleneck in git.

Quoted 8 lines

Also, having all those extra merges complicates the structure of my tree and presumably makes it harder for git to merge other trees. Its also possible (I have seen this in other trees) for the merge commits themselves to generate conflicts with (merge) commits in Linus' and other trees.

Also, I am not sure why you have a branch that ask Linus to merge separate from the branch you have me merge?

Exactly to avoid Linus' tree being polluted by the extra merge commits.

My workflow is really simple -- development happens in (a lot of) topic branches, and each and every time any of the topic branches is updated by a new commit, that topic branch gets merged into for-next.

Quoted 6 lines

Once code should go to Linus, the branches are merged at once into 'for-linus' brach, and it's guaranteed to be code-wise the same as what was gradually appearing in for-next.

What other workflow do you suggest for maintainers like me, who are using a lot of topic branches?

Maybe refreshing merges in for-next branch at each time (or day) instead of incremental merges?

Takashi

#5 lore raw
Quoted 10 lines · Takashi Iwai
Quoted 10 lines

Exactly to avoid Linus' tree being polluted by the extra merge commits.

My workflow is really simple -- development happens in (a lot of) topic branches, and each and every time any of the topic branches is updated by a new commit, that topic branch gets merged into for-next.

Once code should go to Linus, the branches are merged at once into 'for-linus' brach, and it's guaranteed to be code-wise the same as what was gradually appearing in for-next.

Quoted 5 lines
Quoted 2 lines

What other workflow do you suggest for maintainers like me, who are using a lot of topic branches?

Maybe refreshing merges in for-next branch at each time (or day) instead of incremental merges?

That slightly breaks for for-next downstreams, but one can successfully counter that by the fact that topic branches should be the only ones having downstreams, and for-next should be upstream solely for linux-next.

I'll experiment with this during the next cycle.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs