Bug 50991
Summary: | 3.7-rc7: CIFS mounted with cache=strict broke some downloaded files | ||
---|---|---|---|
Product: | File System | Reporter: | Maxim Britov (ungifted01) |
Component: | CIFS | Assignee: | Jeff Layton (jlayton) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | florian, fs_cifs, jlayton, sfrench |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.7-rc7 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | cifs: fix writeback race with file that is growing |
Description
Maxim Britov
2012-11-26 09:43:36 UTC
Thanks for the bug report. I've been able to reproduce it... While writing out the file, the kernel is occasionally issuing a short write to the server and then is skipping over the gap and writing out the rest of the file. The gaps are not page aligned, so I'm at a bit of a loss for the cause so far... Created attachment 87291 [details]
cifs: fix writeback race with file that is growing
Maxim, this patch seems to fix it for me. Does it also fix it for you? I'll plan to send this on to the list tomorrow unless you say it doesn't. With luck, we'll get it in before 3.7 ships.
Thank you! Works fine now for me Thanks. Patch sent to maintainer and linux-cifs ml: http://article.gmane.org/gmane.linux.kernel.cifs/7414 Plan to request upstream merge after one more day in cifs-2.6.git (so it goes through linux-next first) Yep, merged last night. Closing bug. A patch referencing this bug report has been merged in Linux v3.7-rc8: commit 3a98b8614312026d489e56c1d0e294a68e2aad77 Author: Jeff Layton <jlayton@redhat.com> Date: Mon Nov 26 09:48:41 2012 -0500 cifs: fix writeback race with file that is growing |