Re: [PATCH] Initialise scatter/gather list in sg driver

2007-10-26 Thread Jens Axboe
On Thu, Oct 25 2007, Anton Blanchard wrote: > > After turning on DEBUG_SG I hit a fail: > > kernel BUG at include/linux/scatterlist.h:50! > > sg_build_indirect > sg_build_reserve > sg_open > chrdev_open > __dentry_open > do_filp_open > do_sys_open > > W

[PATCH] Initialise scatter/gather list in sg driver

2007-10-25 Thread Anton Blanchard
After turning on DEBUG_SG I hit a fail: kernel BUG at include/linux/scatterlist.h:50! sg_build_indirect sg_build_reserve sg_open chrdev_open __dentry_open do_filp_open do_sys_open We should initialise the sg list when we allocate it in sg_

[PATCH] Initialise scatter/gather list in sg driver

2007-10-25 Thread Anton Blanchard
After turning on DEBUG_SG I hit a fail: kernel BUG at include/linux/scatterlist.h:50! ata_qc_issue ata_scsi_translate ipr_queuecommand scsi_dispatch_cmd scsi_request_fn elv_insert blk_execute_rq_nowait blk_execute_rq sg_io