feature-and-driver-maintainers.rst 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. .. SPDX-License-Identifier: GPL-2.0
  2. ==============================
  3. Feature and driver maintainers
  4. ==============================
  5. The term "maintainer" spans a very wide range of levels of engagement
  6. from people handling patches and pull requests as almost a full time job
  7. to people responsible for a small feature or a driver.
  8. Unlike most of the chapter, this section is meant for the latter (more
  9. populous) group. It provides tips and describes the expectations and
  10. responsibilities of maintainers of a small(ish) section of the code.
  11. Drivers and alike most often do not have their own mailing lists and
  12. git trees but instead send and review patches on the list of a larger
  13. subsystem.
  14. Responsibilities
  15. ================
  16. The amount of maintenance work is usually proportional to the size
  17. and popularity of the code base. Small features and drivers should
  18. require relatively small amount of care and feeding. Nonetheless
  19. when the work does arrive (in form of patches which need review,
  20. user bug reports etc.) it has to be acted upon promptly.
  21. Even when a particular driver only sees one patch a month, or a quarter,
  22. a subsystem could well have a hundred such drivers. Subsystem
  23. maintainers cannot afford to wait a long time to hear from reviewers.
  24. The exact expectations on the response time will vary by subsystem.
  25. The patch review SLA the subsystem had set for itself can sometimes
  26. be found in the subsystem documentation. Failing that as a rule of thumb
  27. reviewers should try to respond quicker than what is the usual patch
  28. review delay of the subsystem maintainer. The resulting expectations
  29. may range from two working days for fast-paced subsystems (e.g. networking)
  30. to as long as a few weeks in slower moving parts of the kernel.
  31. Mailing list participation
  32. --------------------------
  33. Linux kernel uses mailing lists as the primary form of communication.
  34. Maintainers must be subscribed and follow the appropriate subsystem-wide
  35. mailing list. Either by subscribing to the whole list or using more
  36. modern, selective setup like
  37. `lei <https://people.kernel.org/monsieuricon/lore-lei-part-1-getting-started>`_.
  38. Maintainers must know how to communicate on the list (plain text, no invasive
  39. legal footers, no top posting, etc.)
  40. Reviews
  41. -------
  42. Maintainers must review *all* patches touching exclusively their drivers,
  43. no matter how trivial. If the patch is a tree wide change and modifies
  44. multiple drivers - whether to provide a review is left to the maintainer.
  45. When there are multiple maintainers for a piece of code an ``Acked-by``
  46. or ``Reviewed-by`` tag (or review comments) from a single maintainer is
  47. enough to satisfy this requirement.
  48. If the review process or validation for a particular change will take longer
  49. than the expected review timeline for the subsystem, maintainer should
  50. reply to the submission indicating that the work is being done, and when
  51. to expect full results.
  52. Refactoring and core changes
  53. ----------------------------
  54. Occasionally core code needs to be changed to improve the maintainability
  55. of the kernel as a whole. Maintainers are expected to be present and
  56. help guide and test changes to their code to fit the new infrastructure.
  57. Bug reports
  58. -----------
  59. Maintainers must ensure severe problems in their code reported to them
  60. are resolved in a timely manner: regressions, kernel crashes, kernel warnings,
  61. compilation errors, lockups, data loss, and other bugs of similar scope.
  62. Maintainers furthermore should respond to reports about other kinds of
  63. bugs as well, if the report is of reasonable quality or indicates a
  64. problem that might be severe -- especially if they have *Supported*
  65. status of the codebase in the MAINTAINERS file.
  66. Open development
  67. ----------------
  68. Discussions about user reported issues, and development of new code
  69. should be conducted in a manner typical for the larger subsystem.
  70. It is common for development within a single company to be conducted
  71. behind closed doors. However, development and discussions initiated
  72. by community members must not be redirected from public to closed forums
  73. or to private email conversations. Reasonable exceptions to this guidance
  74. include discussions about security related issues.
  75. Selecting the maintainer
  76. ========================
  77. The previous section described the expectations of the maintainer,
  78. this section provides guidance on selecting one and describes common
  79. misconceptions.
  80. The author
  81. ----------
  82. Most natural and common choice of a maintainer is the author of the code.
  83. The author is intimately familiar with the code, so it is the best person
  84. to take care of it on an ongoing basis.
  85. That said, being a maintainer is an active role. The MAINTAINERS file
  86. is not a list of credits (in fact a separate CREDITS file exists),
  87. it is a list of those who will actively help with the code.
  88. If the author does not have the time, interest or ability to maintain
  89. the code, a different maintainer must be selected.
  90. Multiple maintainers
  91. --------------------
  92. Modern best practices dictate that there should be at least two maintainers
  93. for any piece of code, no matter how trivial. It spreads the burden, helps
  94. people take vacations and prevents burnout, trains new members of
  95. the community etc. etc. Even when there is clearly one perfect candidate,
  96. another maintainer should be found.
  97. Maintainers must be human, therefore, it is not acceptable to add a mailing
  98. list or a group email as a maintainer. Trust and understanding are the
  99. foundation of kernel maintenance and one cannot build trust with a mailing
  100. list. Having a mailing list *in addition* to humans is perfectly fine.
  101. Corporate structures
  102. --------------------
  103. To an outsider the Linux kernel may resemble a hierarchical organization
  104. with Linus as the CEO. While the code flows in a hierarchical fashion,
  105. the corporate template does not apply here. Linux is an anarchy held
  106. together by (rarely expressed) mutual respect, trust and convenience.
  107. All that is to say that managers almost never make good maintainers.
  108. The maintainer position more closely matches an on-call rotation
  109. than a position of power.
  110. The following characteristics of a person selected as a maintainer
  111. are clear red flags:
  112. - unknown to the community, never sent an email to the list before
  113. - did not author any of the code
  114. - (when development is contracted) works for a company which paid
  115. for the development rather than the company which did the work
  116. Non compliance
  117. ==============
  118. Subsystem maintainers may remove inactive maintainers from the MAINTAINERS
  119. file. If the maintainer was a significant author or played an important
  120. role in the development of the code, they should be moved to the CREDITS file.
  121. Removing an inactive maintainer should not be seen as a punitive action.
  122. Having an inactive maintainer has a real cost as all developers have
  123. to remember to include the maintainers in discussions and subsystem
  124. maintainers spend brain power figuring out how to solicit feedback.
  125. Subsystem maintainers may remove code for lacking maintenance.
  126. Subsystem maintainers may refuse accepting code from companies
  127. which repeatedly neglected their maintainership duties.