public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* about ll_rw_blk.c of void generic_make_request(struct bio *bio)
@ 2006-03-29  7:26 erich
  2006-03-30 15:58 ` Jens Axboe
  0 siblings, 1 reply; 9+ messages in thread
From: erich @ 2006-03-29  7:26 UTC (permalink / raw)
  To: Jens Axboe
  Cc: (廣安科技)安可O,
	Andrew Morton, linux-kernel, dax, ccaputo, Matti Aarnio

Dear Jens Axboe,

I am an engineer of Areca (SATA RAID controller producer).
I have coding linux driver for kernel.org "arcmsr".
I have got dump message %s: rw=%ld, want=%Lu, limit=%Lu message from ext2 
file system.
But I am do well at Ext3 and all linux files system.
This issue only occur at read command.
Could you give me some info how to fix this bug in my linux scsi raid 
driver?

About the code ll_rw_blk.c mention that "it may well happen - the kernel 
calls bread() without checking the size of the device, e.g., when mounting a 
device."

I hope that you have more experience with it and knew what's wrong I am 
doing in my driver.


generic_make_request(struct bio *bio)

 if (maxsector)
 {
  sector_t sector = bio->bi_sector;

  if (maxsector < nr_sectors || maxsector - nr_sectors < sector)
  {
   /*
    * This may well happen - the kernel calls bread()
    * without checking the size of the device, e.g., when
    * mounting a device.
    */
   handle_bad_sector(bio);
   goto end_io;
  }
 }
Best Regards
Erich Chen 


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-04-06 12:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-29  7:26 about ll_rw_blk.c of void generic_make_request(struct bio *bio) erich
2006-03-30 15:58 ` Jens Axboe
2006-03-31 17:32   ` Chris Caputo
2006-03-31 18:09     ` Chris Caputo
2006-03-31 20:22       ` Jens Axboe
2006-03-31 20:37         ` Chris Caputo
2006-04-06  9:32           ` erich
2006-04-06 11:44             ` Chris Caputo
2006-04-06 12:27               ` erich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox