[PATCH v3 0/2] skip spare disk as freshest disk

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

 



Hi,
	For this patchset , we add a new entry .disk_is_spare in super_type
	to check if the disk is in 'spare' state. If a disk is in spare,
	analyze_sbs() should skip the disk to be freshest disk. Otherwise,
	it may cause md run fail. There is a fail example in the second patch.

V3:
 - add a new entry .disk_is_spare in super_type

V2:
 - just fix analyze_sbs() to skip spare disk
 - https://www.spinics.net/lists/raid/msg63196.html

V1:
 - directly modify super_*_load to skip event tests for spare disk
 - https://www.spinics.net/lists/raid/msg63136.html


Yufen Yu (2):
  md: add a new entry .disk_is_spare in super_types
  md: don't let spare disk become the fresh disk in analyze_sbs()

 drivers/md/md.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 57 insertions(+), 3 deletions(-)

-- 
2.17.2




[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