[PATCH V2 0/2] md: Change active_io to percpu

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

 



Hi all

This is a optimization for active_io. Now it's atomic type and
added/decreased when io comes, but it's only needed to be checked
when suspending raid. So we can change it to percpu type.

The first patch factors out a helper function which is used in
the second patch.

The patches have been tested by regression test under tests directory.
I did a performance test too. In my environment there is no big change.

Xiao Ni (2):
  Factor out is_md_suspended helper
  md: Change active_io to percpu

 drivers/md/md.c | 50 ++++++++++++++++++++++++++++++-------------------
 drivers/md/md.h |  2 +-
 2 files changed, 32 insertions(+), 20 deletions(-)

-- 
2.32.0 (Apple Git-132)




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux