Re: Is there a reason we don't have kvfree_rcu()?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 13, 2020 at 06:46:41PM +0000, George Spelvin wrote:
> On Fri, Mar 13, 2020 at 11:19:17AM -0700, Paul E. McKenney wrote:
> > Another approach would be to terminate with a NULL pointer, or with the
> > end of the array, as the case may be.
> 
> That's the basic idea, but you want to be able to append a pointer
> in O(1) time, and a simple null-termination requires a linear search.

Fair point!

> It's obfuscation for negligible gain, however, so I'm sorry I
> bothered mentioning it.

I am with you on keeping it simple, especially initially, all evidence
to the contrary notwithstanding.

							Thanx, Paul



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux