* [PATCH net-next] docs: netdev: clarify the need to sending reverts as patches
@ 2023-03-27 17:26 Jakub Kicinski
2023-03-27 17:52 ` Jacob Keller
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Jakub Kicinski @ 2023-03-27 17:26 UTC (permalink / raw)
To: davem; +Cc: netdev, edumazet, pabeni, Jakub Kicinski, corbet, linux-doc
We don't state explicitly that reverts need to be submitted
as a patch. It occasionally comes up.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: corbet@lwn.net
CC: linux-doc@vger.kernel.org
---
Documentation/process/maintainer-netdev.rst | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/Documentation/process/maintainer-netdev.rst b/Documentation/process/maintainer-netdev.rst
index e31d7a951073..f6983563ff06 100644
--- a/Documentation/process/maintainer-netdev.rst
+++ b/Documentation/process/maintainer-netdev.rst
@@ -184,11 +184,18 @@ Handling misapplied patches
Occasionally a patch series gets applied before receiving critical feedback,
or the wrong version of a series gets applied.
-There is no revert possible, once it is pushed out, it stays like that.
+
+Making the patch disappear once it is pushed out is not possible, the commit
+history in netdev trees is stable.
Please send incremental versions on top of what has been merged in order to fix
the patches the way they would look like if your latest patch series was to be
merged.
+In cases where full revert is needed the revert has to be submitted
+as a patch to the list with a commit message explaining the technical
+problems with the reverted commit. Reverts should be used as a last resort,
+when original change is completely wrong; incremental fixes are preferred.
+
Stable tree
~~~~~~~~~~~
--
2.39.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH net-next] docs: netdev: clarify the need to sending reverts as patches
2023-03-27 17:26 [PATCH net-next] docs: netdev: clarify the need to sending reverts as patches Jakub Kicinski
@ 2023-03-27 17:52 ` Jacob Keller
2023-03-27 19:19 ` Florian Fainelli
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Jacob Keller @ 2023-03-27 17:52 UTC (permalink / raw)
To: Jakub Kicinski, davem; +Cc: netdev, edumazet, pabeni, corbet, linux-doc
On 3/27/2023 10:26 AM, Jakub Kicinski wrote:
> We don't state explicitly that reverts need to be submitted
> as a patch. It occasionally comes up.
>
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: corbet@lwn.net
> CC: linux-doc@vger.kernel.org
> ---
> Documentation/process/maintainer-netdev.rst | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/process/maintainer-netdev.rst b/Documentation/process/maintainer-netdev.rst
> index e31d7a951073..f6983563ff06 100644
> --- a/Documentation/process/maintainer-netdev.rst
> +++ b/Documentation/process/maintainer-netdev.rst
> @@ -184,11 +184,18 @@ Handling misapplied patches
>
> Occasionally a patch series gets applied before receiving critical feedback,
> or the wrong version of a series gets applied.
> -There is no revert possible, once it is pushed out, it stays like that.
> +
> +Making the patch disappear once it is pushed out is not possible, the commit
> +history in netdev trees is stable.
> Please send incremental versions on top of what has been merged in order to fix
> the patches the way they would look like if your latest patch series was to be
> merged.
>
> +In cases where full revert is needed the revert has to be submitted
> +as a patch to the list with a commit message explaining the technical
> +problems with the reverted commit. Reverts should be used as a last resort,
> +when original change is completely wrong; incremental fixes are preferred.
> +
This is much clearer. It highlights that you won't rewind/modify
history, and explains the desire for incremental fixes better.
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
> Stable tree
> ~~~~~~~~~~~
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net-next] docs: netdev: clarify the need to sending reverts as patches
2023-03-27 17:26 [PATCH net-next] docs: netdev: clarify the need to sending reverts as patches Jakub Kicinski
2023-03-27 17:52 ` Jacob Keller
@ 2023-03-27 19:19 ` Florian Fainelli
2023-03-29 2:04 ` Jakub Kicinski
2023-03-29 7:00 ` patchwork-bot+netdevbpf
2023-03-29 9:04 ` Thorsten Leemhuis
3 siblings, 1 reply; 7+ messages in thread
From: Florian Fainelli @ 2023-03-27 19:19 UTC (permalink / raw)
To: Jakub Kicinski, davem; +Cc: netdev, edumazet, pabeni, corbet, linux-doc
On 3/27/23 10:26, Jakub Kicinski wrote:
> We don't state explicitly that reverts need to be submitted
> as a patch. It occasionally comes up.
>
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: corbet@lwn.net
> CC: linux-doc@vger.kernel.org
> ---
> Documentation/process/maintainer-netdev.rst | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/process/maintainer-netdev.rst b/Documentation/process/maintainer-netdev.rst
> index e31d7a951073..f6983563ff06 100644
> --- a/Documentation/process/maintainer-netdev.rst
> +++ b/Documentation/process/maintainer-netdev.rst
> @@ -184,11 +184,18 @@ Handling misapplied patches
>
> Occasionally a patch series gets applied before receiving critical feedback,
> or the wrong version of a series gets applied.
> -There is no revert possible, once it is pushed out, it stays like that.
> +
> +Making the patch disappear once it is pushed out is not possible, the commit
> +history in netdev trees is stable.
I would write immutable instead of stable here to convey the idea that
there are no history rewrites once the tree is pushed out. With that:
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net-next] docs: netdev: clarify the need to sending reverts as patches
2023-03-27 19:19 ` Florian Fainelli
@ 2023-03-29 2:04 ` Jakub Kicinski
0 siblings, 0 replies; 7+ messages in thread
From: Jakub Kicinski @ 2023-03-29 2:04 UTC (permalink / raw)
To: Florian Fainelli; +Cc: davem, netdev, edumazet, pabeni, corbet, linux-doc
On Mon, 27 Mar 2023 12:19:14 -0700 Florian Fainelli wrote:
> I would write immutable instead of stable here to convey the idea that
> there are no history rewrites once the tree is pushed out.
I'll s/stable/immutable/ when applying, thanks!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net-next] docs: netdev: clarify the need to sending reverts as patches
2023-03-27 17:26 [PATCH net-next] docs: netdev: clarify the need to sending reverts as patches Jakub Kicinski
2023-03-27 17:52 ` Jacob Keller
2023-03-27 19:19 ` Florian Fainelli
@ 2023-03-29 7:00 ` patchwork-bot+netdevbpf
2023-03-29 9:04 ` Thorsten Leemhuis
3 siblings, 0 replies; 7+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-03-29 7:00 UTC (permalink / raw)
To: Jakub Kicinski; +Cc: davem, netdev, edumazet, pabeni, corbet, linux-doc
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 27 Mar 2023 10:26:46 -0700 you wrote:
> We don't state explicitly that reverts need to be submitted
> as a patch. It occasionally comes up.
>
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: corbet@lwn.net
> CC: linux-doc@vger.kernel.org
>
> [...]
Here is the summary with links:
- [net-next] docs: netdev: clarify the need to sending reverts as patches
https://git.kernel.org/netdev/net-next/c/e70f94c6c75c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net-next] docs: netdev: clarify the need to sending reverts as patches
2023-03-27 17:26 [PATCH net-next] docs: netdev: clarify the need to sending reverts as patches Jakub Kicinski
` (2 preceding siblings ...)
2023-03-29 7:00 ` patchwork-bot+netdevbpf
@ 2023-03-29 9:04 ` Thorsten Leemhuis
2023-03-29 19:02 ` Jakub Kicinski
3 siblings, 1 reply; 7+ messages in thread
From: Thorsten Leemhuis @ 2023-03-29 9:04 UTC (permalink / raw)
To: Jakub Kicinski, davem
Cc: netdev, edumazet, pabeni, corbet, linux-doc,
Linux kernel regressions list
On 27.03.23 19:26, Jakub Kicinski wrote:
> We don't state explicitly that reverts need to be submitted
> as a patch. It occasionally comes up.
> [...]
> +In cases where full revert is needed the revert has to be submitted
> +as a patch to the list with a commit message explaining the technical
> +problems with the reverted commit. Reverts should be used as a last resort,
> +when original change is completely wrong; incremental fixes are preferred.
> +
FWIW, I see how this is well meant, but I'm not really happy with the
last sentence, as one of the problems I notice when handling regression
is: it sometimes takes weeks to get regressions fixed that could have
been solved quickly by reverting the culprit (and reapplying an improved
version of the change or the change together and a fix later). That's
why Documentation/process/handling-regressions.rst strongly suggest to
revert changes that cause regressions if the problem can't be fixed
quickly -- especially if the change made it into a proper release. The
two texts thus now not slightly contradict each other.
I noticed that this change was already applied, but how would you feel
about changing the second sentence into something like this maybe?
```
Use reverts to quickly fix regressions that otherwise would take too
long to resolve. Apart from this reverts should be used as a last
resort, when the original change is completely wrong; incremental fixes
are preferred.
```
Or maybe this?
```
Incremental fixes in general are preferred over reverts, but the latter
are useful to quickly fix regressions that otherwise would take too long
to resolve. Apart from this reverts should be used as a last resort,
when the original change is completely wrong.
```
Ciao, Thorsten
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net-next] docs: netdev: clarify the need to sending reverts as patches
2023-03-29 9:04 ` Thorsten Leemhuis
@ 2023-03-29 19:02 ` Jakub Kicinski
0 siblings, 0 replies; 7+ messages in thread
From: Jakub Kicinski @ 2023-03-29 19:02 UTC (permalink / raw)
To: Thorsten Leemhuis
Cc: davem, netdev, edumazet, pabeni, corbet, linux-doc,
Linux kernel regressions list
On Wed, 29 Mar 2023 11:04:01 +0200 Thorsten Leemhuis wrote:
> FWIW, I see how this is well meant, but I'm not really happy with the
> last sentence, as one of the problems I notice when handling regression
> is: it sometimes takes weeks to get regressions fixed that could have
> been solved quickly by reverting the culprit (and reapplying an improved
> version of the change or the change together and a fix later). That's
> why Documentation/process/handling-regressions.rst strongly suggest to
> revert changes that cause regressions if the problem can't be fixed
> quickly -- especially if the change made it into a proper release. The
> two texts thus now not slightly contradict each other.
>
> I noticed that this change was already applied, but how would you feel
> about changing the second sentence into something like this maybe?
Please escalate the cases which can be fixed by easy reverts because
I can't think of any in networking :(
The entire doc is based on our painful experience telling people the
same thing over and over again, we don't want to include things which
don't actually happen on netdev. Longer the doc is the less likely
people will actually read it :(
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-03-29 19:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-27 17:26 [PATCH net-next] docs: netdev: clarify the need to sending reverts as patches Jakub Kicinski
2023-03-27 17:52 ` Jacob Keller
2023-03-27 19:19 ` Florian Fainelli
2023-03-29 2:04 ` Jakub Kicinski
2023-03-29 7:00 ` patchwork-bot+netdevbpf
2023-03-29 9:04 ` Thorsten Leemhuis
2023-03-29 19:02 ` Jakub Kicinski
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).