Re: Error using the buffer cache

2007-05-04 Thread mcatos
I have isolated the problem a little bit. Here's what I do: struct buffer_head *bh; sector_t sector = 0; bh = __bread(bdev, sector, bdev_get_queue(bdev)->hardsect_size); brelse(bh); sector++; bh = __bread(bdev, sector, bdev_get_queue(bdev)->hardsect_size); brelse(bh); And I get this error: BUG:

Re: Error using the buffer cache

2007-05-04 Thread mcatos
I have isolated the problem a little bit. Here's what I do: struct buffer_head *bh; sector_t sector = 0; bh = __bread(bdev, sector, bdev_get_queue(bdev)-hardsect_size); brelse(bh); sector++; bh = __bread(bdev, sector, bdev_get_queue(bdev)-hardsect_size); brelse(bh); And I get this error: BUG:

Error using the buffer cache

2007-05-03 Thread Thanos Makatos
I've written a module that acts as a cache for fixed size objects but I get a soft lockup trying to use the buffer cache. I've attached the module that reproduces the error. You need to supply the module with a block device, i.e. insmod disk_cache.ko devname="/dev/hda2". /* * An object oriented

Error using the buffer cache

2007-05-03 Thread mcatos
I've written a module that acts as a cache for fixed size objects but I'm getting a soft lockup using the buffer cache as backing storage. I've attached the code that reproduces the error. You need to supply the module with a valid block device, i.e. insmod disk_cache.ko devname="/dev/hda2".

Error using the buffer cache

2007-05-03 Thread mcatos
I've written a module that acts as a cache for fixed size objects but I'm getting a soft lockup using the buffer cache as backing storage. I've attached the code that reproduces the error. You need to supply the module with a valid block device, i.e. insmod disk_cache.ko devname=/dev/hda2.

Error using the buffer cache

2007-05-03 Thread Thanos Makatos
I've written a module that acts as a cache for fixed size objects but I get a soft lockup trying to use the buffer cache. I've attached the module that reproduces the error. You need to supply the module with a block device, i.e. insmod disk_cache.ko devname=/dev/hda2. /* * An object oriented