[PATCH v3] md: protect against crash upon fsync on ro array
From: Sebastian Riemer <hidden>
Date: 2013-01-28 12:39:00
Attachments
- 0001-md-protect-against-crash-upon-fsync-on-ro-array.txt [text/plain] 1250 bytes · preview
From: Sebastian Riemer <hidden>
Date: 2013-01-28 12:39:00
On 28.01.2013 11:32, Sebastian Riemer wrote:
O.K., then I hope Neil applies the attached patch. I've changed the return value to success. This is also something for linux-stable and should apply to many kernel versions without an issue.
I've tried to race with continuous fsyncs against continuous "mdadm -o /dev/md0; mdadm -w /dev/md0;" in parallel but couldn't break it. Therefore, no additional locking is required and this part can be put directly before the RCU locking stuff and the suspended handling. I've attached version 3 of the patch.