Re: [PATCH V2 12/20] block: add `struct elv_change_ctx` for unifying elevator_change

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

 



On Tue, Apr 22, 2025 at 04:36:08PM +0800, Ming Lei wrote:
> Please see the following patch of 'block: move elv_register[unregister]_queue out of elevator_lock'
> in which elevator_change_done() has to be added, then the context structure
> can't be kept as private any more.

It can.  See the attached first patch.  The second patch then cleans
things up further so that we don't need the force flag or
__elevator_change.

> > 
> > Also please use a flags value with named flags instead of the various
> > booleans.
> 
> 'struct elv_change_ctx' has to be parameter, so it doesn't matter to
> use flags value any more, and 'bool' should be easier.

It's still much more readable to have flags.  Especially to discover
and document how init and uevent are related, which seems rather
confusing at the moment.






[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