Re: [PATCH 03/19] blk-cgroup: improve error unwinding in blkg_alloc

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

 



On Thu, Feb 02, 2023 at 02:10:07PM -1000, Tejun Heo wrote:
> This is fine but is this necessarily better? If it's needed for future
> changes, maybe that should be mentioned?

It avoids dealing with partially constructed blkgs outside of blkg_alloc,
which is mostly useful for code clarity.  It also micro-optimized the
free fast path a bit by avoiding two pointless (but mostly confusing)
branches.

I've updated the commit log a bit.



[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