Bug 217123
Summary: | NFS Server seems to write to locked file-system | ||
---|---|---|---|
Product: | File System | Reporter: | Flole (flole) |
Component: | NFS | Assignee: | Chuck Lever (cel) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | cel, jack, jlayton |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 5.15.0-60 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Flole
2023-03-04 02:20:46 UTC
I need an ext4 developer to explain the significance of this warning. I believe this warning means, that the FS was frozen and "something" still managed to write to it, which could potentially cause severe issues. But that's just what I managed to figure out from my short research, so someone with more knowledge might be able to provide a better or more accurate explanation. Yes, correct. The code in nfsd_vfs_write() needs to call file_start_write() before it calls into vfs_iter_write() and call file_end_write() after it returns. Ideally it would be done inside vfs_iter_write() itself but it would not work for CODA and splice code. So we have what we have... Thanks, Jan. I'll send a patch to Linus this week. See commit fd9a2e1d5138 ("NFSD: Protect against filesystem freezing") |