Re: [PATCH 00/13] Introduce seqnum_ops

2020-11-11 Thread Matthew Wilcox
On Wed, Nov 11, 2020 at 09:03:20AM -0700, Shuah Khan wrote: > On 11/10/20 9:33 PM, Matthew Wilcox wrote: > > On Tue, Nov 10, 2020 at 12:53:26PM -0700, Shuah Khan wrote: > > > There are a number of atomic_t usages in the kernel where atomic_t api > > > is used strictly for counting sequence numbers

Re: [PATCH 00/13] Introduce seqnum_ops

2020-11-11 Thread Shuah Khan
On 11/10/20 9:33 PM, Matthew Wilcox wrote: On Tue, Nov 10, 2020 at 12:53:26PM -0700, Shuah Khan wrote: There are a number of atomic_t usages in the kernel where atomic_t api is used strictly for counting sequence numbers and other statistical counters and not for managing object lifetime. We

Re: [PATCH 00/13] Introduce seqnum_ops

2020-11-10 Thread Matthew Wilcox
On Tue, Nov 10, 2020 at 12:53:26PM -0700, Shuah Khan wrote: > There are a number of atomic_t usages in the kernel where atomic_t api > is used strictly for counting sequence numbers and other statistical > counters and not for managing object lifetime. We already have something in Linux called a

Re: [PATCH 00/13] Introduce seqnum_ops

2020-11-10 Thread Shuah Khan
On 11/10/20 1:44 PM, Alan Stern wrote: On Tue, Nov 10, 2020 at 12:53:26PM -0700, Shuah Khan wrote: There are a number of atomic_t usages in the kernel where atomic_t api is used strictly for counting sequence numbers and other statistical counters and not for managing object lifetime. The

Re: [PATCH 00/13] Introduce seqnum_ops

2020-11-10 Thread Alan Stern
On Tue, Nov 10, 2020 at 12:53:26PM -0700, Shuah Khan wrote: > There are a number of atomic_t usages in the kernel where atomic_t api > is used strictly for counting sequence numbers and other statistical > counters and not for managing object lifetime. > > The purpose of these Sequence Number Ops

[PATCH 00/13] Introduce seqnum_ops

2020-11-10 Thread Shuah Khan
There are a number of atomic_t usages in the kernel where atomic_t api is used strictly for counting sequence numbers and other statistical counters and not for managing object lifetime. The purpose of these Sequence Number Ops is to clearly differentiate atomic_t counter usages from atomic_t