diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2014-08-06 02:32:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-09 12:13:40 -0400 |
commit | 7b9828d44194b2d90595ed4bd5131cacbf29b201 (patch) | |
tree | 17ca252aa5174a53e35716ac0cae0c760727630e | |
parent | d74aae4ea0257f3d6e94ef7a0420ef5074d6eb1e (diff) |
Documentation: SubmittingPatches: overhaul changelog description
Maintainers often repeat the same feedback on poorly written
changelogs - describe the problem, justify your changes, quantify
optimizations, describe user-visible changes - but our documentation
on writing changelogs doesn't include these things. Fix that.
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | Documentation/SubmittingPatches | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches index dcadffcab2dc..0a523c9a5ff4 100644 --- a/Documentation/SubmittingPatches +++ b/Documentation/SubmittingPatches | |||
@@ -84,18 +84,42 @@ is another popular alternative. | |||
84 | 84 | ||
85 | 2) Describe your changes. | 85 | 2) Describe your changes. |
86 | 86 | ||
87 | Describe the technical detail of the change(s) your patch includes. | 87 | Describe your problem. Whether your patch is a one-line bug fix or |
88 | 88 | 5000 lines of a new feature, there must be an underlying problem that | |
89 | Be as specific as possible. The WORST descriptions possible include | 89 | motivated you to do this work. Convince the reviewer that there is a |
90 | things like "update driver X", "bug fix for driver X", or "this patch | 90 | problem worth fixing and that it makes sense for them to read past the |
91 | includes updates for subsystem X. Please apply." | 91 | first paragraph. |
92 | |||
93 | Describe user-visible impact. Straight up crashes and lockups are | ||
94 | pretty convincing, but not all bugs are that blatant. Even if the | ||
95 | problem was spotted during code review, describe the impact you think | ||
96 | it can have on users. Keep in mind that the majority of Linux | ||
97 | installations run kernels from secondary stable trees or | ||
98 | vendor/product-specific trees that cherry-pick only specific patches | ||
99 | from upstream, so include anything that could help route your change | ||
100 | downstream: provoking circumstances, excerpts from dmesg, crash | ||
101 | descriptions, performance regressions, latency spikes, lockups, etc. | ||
102 | |||
103 | Quantify optimizations and trade-offs. If you claim improvements in | ||
104 | performance, memory consumption, stack footprint, or binary size, | ||
105 | include numbers that back them up. But also describe non-obvious | ||
106 | costs. Optimizations usually aren't free but trade-offs between CPU, | ||
107 | memory, and readability; or, when it comes to heuristics, between | ||
108 | different workloads. Describe the expected downsides of your | ||
109 | optimization so that the reviewer can weigh costs against benefits. | ||
110 | |||
111 | Once the problem is established, describe what you are actually doing | ||
112 | about it in technical detail. It's important to describe the change | ||
113 | in plain English for the reviewer to verify that the code is behaving | ||
114 | as you intend it to. | ||
92 | 115 | ||
93 | The maintainer will thank you if you write your patch description in a | 116 | The maintainer will thank you if you write your patch description in a |
94 | form which can be easily pulled into Linux's source code management | 117 | form which can be easily pulled into Linux's source code management |
95 | system, git, as a "commit log". See #15, below. | 118 | system, git, as a "commit log". See #15, below. |
96 | 119 | ||
97 | If your description starts to get long, that's a sign that you probably | 120 | Solve only one problem per patch. If your description starts to get |
98 | need to split up your patch. See #3, next. | 121 | long, that's a sign that you probably need to split up your patch. |
122 | See #3, next. | ||
99 | 123 | ||
100 | When you submit or resubmit a patch or patch series, include the | 124 | When you submit or resubmit a patch or patch series, include the |
101 | complete patch description and justification for it. Don't just | 125 | complete patch description and justification for it. Don't just |