From: FUJITA Tomonori Date: Sat, 16 Feb 2008 14:57:15 +0000 (+0900) Subject: [SCSI] scsi_debug: disable clustering X-Git-Tag: v2.6.25-rc3~69^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbccc207128e8bbdb047f6c5fc261acf207749c1;p=platform%2Fkernel%2Flinux-stable.git [SCSI] scsi_debug: disable clustering scsi_debug does at several places: for_each_sg(sdb->table.sgl, sg, sdb->table.nents, k) { kaddr = (unsigned char *) kmap_atomic(sg_page(sg), KM_USER0); We cannot do something like that with the clustering enabled (or we can use scsi_kmap_atomic_sg). Signed-off-by: FUJITA Tomonori Acked-by: Douglas Gilbert Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c index 1541c17..d1777a9 100644 --- a/drivers/scsi/scsi_debug.c +++ b/drivers/scsi/scsi_debug.c @@ -222,7 +222,7 @@ static struct scsi_host_template sdebug_driver_template = { .cmd_per_lun = 16, .max_sectors = 0xffff, .unchecked_isa_dma = 0, - .use_clustering = ENABLE_CLUSTERING, + .use_clustering = DISABLE_CLUSTERING, .module = THIS_MODULE, };