Bug 13469
Summary: | fscache crash | ||
---|---|---|---|
Product: | File System | Reporter: | Adrian von Bidder (avbidder) |
Component: | Other | Assignee: | David Howells (dhowells) |
Status: | CLOSED CODE_FIX | ||
Severity: | high | CC: | akpm, alan |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.30-rc8 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | Patch to stop cachefiles from writing to much data to the backing file |
Description
Adrian von Bidder
2009-06-07 09:20:31 UTC
Reassigned to dhowells. I've come across this one. I have a tentative patch to fix it that I've given to someone else to test. Created attachment 21853 [details]
Patch to stop cachefiles from writing to much data to the backing file
Can you try this patch please? I think it should fix the problem, which is that cachefiles currently writes beyond the EOF when the netfs inode's last page is a partial page. This causes cachefiles to subsequently try to truncate the last page of the backing file to the expected file - which has consequences when we're also trying to read that page.
Ok, hasn't crashed for me so far after a few 100M of the same kind of traffic as I tried originally. (I've applied this on top of Debian's linux-source-2.6.30 package version 2.6.30-1~experimental.1~snapshot.13794.) Thanks a lot. cheers -- vbi |