Re: Re: misc elevator code cleanups

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

 



> > Only elevator_find_get is calling __elevator_find after applying the
> > series. Maybe we can just remove __elevator_find and move the list
> > iterating logic into elevator_find_get?
> 
> We could. But then we'd need another local variable to track what
> was found, so I'm not sure it is a win.  In general having a pure
> list lookup in a helper while all the locking and refcounting in
> a wrapper around it tends to be a quite nice pattern.

Got it, thank you for your answer and patience!

Thanks!
Jinlong Chen





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux