From: Akinobu Mita Date: Wed, 26 Feb 2014 13:57:02 +0000 (+0900) Subject: [SCSI] scsi_debug: prepare to enable clustering X-Git-Tag: v3.15-rc1~136^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be4e11be99dbb36308760595ee848ef51713b4b0;p=pandora-kernel.git [SCSI] scsi_debug: prepare to enable clustering Currently, clustering support for scsi_debug is disabled. This is because there are for_each_sg() loops which assume that each sg list element is consisted with a single page. But enabling clustering support, each sg list element for scsi commands can be consisted with multiple pages. This replaces these for_each_sg() loops with sg mapping iterator which is capable of handling each sg list element is consisted with multiple pages. Signed-off-by: Akinobu Mita Reviewed-by: Douglas Gilbert Reviewed-by: Martin K. Petersen Signed-off-by: James Bottomley --- Reading git-diff-tree failed