Open shaan1337 opened 2 years ago
Issue also happens with latest ZFS version (zfs-2.1.1-1/zfs-kmod-2.1.1-1)
I've turned off WBT on the disks as suggested by @rincebrain in #12662 and the deadlock still occurs
This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions.
Reopening until we can verify this has been resolved with the provided reproducer.
System information
Describe the problem you're observing
In an attempt to reproduce: https://github.com/openzfs/zfs/issues/12662, I've come across a reproducible deadlock by doing msync in parallel to the same file.
Although the stack trace looks similar to #12662, I'm not sure if it's the same issue or if they are related at all. They both wait for a page to go out of the
page writeback
state but in #12662 it happens only temporarily. In this case it seems to be a deadlock and the system needs to be rebooted.Describe how to reproduce the problem
repro.zip
You may need to be run the application a few times for the issue to occur. If it's not happening, you can also replace
for(int i=0;i<10;i++){
withfor(;;){
and it should occur more predictably.Include any warning/errors/backtraces from the system logs
The application hangs and after a few minutes, the following can be seen in the
dmesg
output: dmesg.logAn attempt to read the file
writer.chk
hangs as well.