NeilBrown (neilb@xxxxxxx) said: > There is more to this than the 'unclean' flag. > The really important task for mdmon (which hopefully it never has > to perform...) is to record device failures (which is what RAID is > really all about). > > If a device fails while trying to write to it, we cannot allow that > write to complete until the other devices have had that device failure > recorded on them. Otherwise, following an unclean shutdown we might trust > the data that is on that drive, which is now out-of-date. OK, so: 1) kernel sends write request. If error.... 2) <some error occurs> 3) kernel sends error to userspace 4) mdmon wakes up 5) mdmon decides where to record this 6) mdmon writes to super blocks 7) go to step one, hope you don't hit step 2 this time This now means that reliable suspend and resume is completely impossible on RAID devices, just as it is on FUSE. You can't have waking up userspace be part of your write and sync process - you've just deadlocked at step 3/4. Unless I've missed something here? Bill -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html