[linux-mm-cc] Testing ccache swap on N810

Nitin Gupta nitingupta910 at gmail.com
Mon Jan 7 05:31:45 EST 2008

Hi Anderson,

On Jan 7, 2008 12:41 AM, Anderson Briglia <anderson at briglia.net> wrote:

> I backported the actual code from [1] to 2.6.21 kernel version, used on
> Nokia N810 device. This is an embedded Linux device using an ARM-OMAP
> processor. Well, after some compilation problems due to bio interface
> changes, I got ccache modules compiled.

Now ccache compiles with kernels >= 2.6.21 too (I didn't try with even older
kernels). Also, sys_swapon() does not hang now (this never happened with

> The problem now is happening when I try to "swapon" /dev/ccache.
> sys_swapon() never finishes and seems that we have a deadlock there. I'm
> investigating what's going on with sys_swapon() but I really appreciate if
> you point something that could cause this.

Looks like you were doing same mistake as I was doing initially.
bio_io_error() should be called as bio_io_error(bio, bio->bi_size) and not
as bio_io_error(bio, 0). This was causing read() on /dev/ccache to hang.

> Good work Nitin, I intend to contribute to your project. :)

Thanks :)

> [1] http://code.google.com/p/ccache/source

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/linux-mm-cc/attachments/20080107/94a12962/attachment.htm 

More information about the linux-mm-cc mailing list