[Linux-cachefs] 'bad page state' error
Rob Bos
rbos at sfu.ca
Sun Jun 23 01:06:50 UTC 2013
I can reliably reproduce the error by mounting the filesystem with CIFS fscache enabled, then doing a cp on a file, and then hitting 'ctrl-c' to cancel the copy. This is on a separate VM with RHEL6.4 using the 373 kernel.
If I let the copy finish on its own, no error is generated; if I cancel the copy, it dumps 'bad page status' in dmesg.
Maybe aria2c generates these errors because torrents work in file chunks, so it opens, seeks, reads a chunk, and then closes. The kernel code may not handle partial reads properly, I speculate.
The crashes that happen after a while could be a separate problem. Unable to reproduce so far.
----- Original Message -----
> Rob Bos <rbos at sfu.ca> wrote:
>
> > I applied the 373 patchset and compiled a version with CIFS_FSCACHE
> > enabled.
> >
> > Same problem. Got ~2GiB into a cp before it started generating 'bad
> > page
> > state' errors.
>
> Okay, thanks. Looks like there's still another bug in there:-(
>
> When you say you git 2GiB into a cp, were you actually copying a file
> of that
> size? Or was this cumulative?
>
> If I could work out how to reproduce this reliably, there's a good
> chance I'll
> be able to fix it.
>
> David
>
More information about the Linux-cachefs
mailing list