Re: [PATCH 1/3] seq_file: document how per-entry resources are managed.

2021-02-04 Thread Matthew Wilcox
On Fri, Feb 05, 2021 at 11:36:30AM +1100, NeilBrown wrote: > +passed to a subsequenct next() or stop() call. This allows resources s/quenct/quent/

[PATCH 1/3] seq_file: document how per-entry resources are managed.

2021-02-04 Thread NeilBrown
Users of seq_file will sometimes find it convenient to take a resource, such as a lock or memory allocation, in the ->start or ->next operations. These are per-entry resources, distinct from per-session resources which are taken in ->start and released in ->stop. The preferred management of these