On 5/13/21 6:39 AM, Vojtech Myslivec wrote:
It has been two months since I last reported the state of the issue:
On 17. 03. 21 16:55, Vojtech Myslivec wrote:
> Thanks a lot Manuel for your findings and information.
>
> I have moved journal from logical volume on RAID1 to a plain partition
> on a SSD and I will monitor the state.
So, we run the MD level 6 array (/dev/md1) with journal device on
a plain partition of one of SSD disk (/dev/sdh5) now. See attached files
for more details.
Since then (March 17th), our discussed issue happened "only" three
times. First occurrence was on April 21st, 5 weeks after moving the
journal.
*I can confirm that the issue still persist, but it is definitely less
frequent.*
Could you check if this helps?
diff --git a/drivers/md/md.c b/drivers/md/md.c
index bd813f747769..b97429f19247 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -1014,6 +1014,7 @@ void md_super_write(struct mddev *mddev, struct
md_rdev *rdev,
!test_bit(LastDev, &rdev->flags))
ff = MD_FAILFAST;
bio->bi_opf = REQ_OP_WRITE | REQ_SYNC | REQ_PREFLUSH | REQ_FUA
| ff;
+ bio->bi_opf |= REQ_IDLE;
Thanks,
Guoqing