Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9cb83c75 authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by Jens Axboe
Browse files

[SCSI] add use_sg_chaining option to scsi_host_template



This option is true if a low-level driver can support sg
chaining. This will be removed eventually when all the drivers are
converted to support sg chaining. q->max_phys_segments is set to
SCSI_MAX_SG_SEGMENTS if false.

Signed-off-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent c0dcffd7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -360,6 +360,7 @@ static struct scsi_host_template driver_template = {
	.max_sectors		= 1024,
	.cmd_per_lun		= SIMSCSI_REQ_QUEUE_LEN,
	.use_clustering		= DISABLE_CLUSTERING,
	.use_sg_chaining	= ENABLE_SG_CHAINING,
};

static int __init
+1 −0
Original line number Diff line number Diff line
@@ -1990,6 +1990,7 @@ static struct scsi_host_template driver_template = {
	.max_sectors		= TW_MAX_SECTORS,
	.cmd_per_lun		= TW_MAX_CMDS_PER_LUN,
	.use_clustering		= ENABLE_CLUSTERING,
	.use_sg_chaining	= ENABLE_SG_CHAINING,
	.shost_attrs		= twa_host_attrs,
	.emulated		= 1
};
+1 −0
Original line number Diff line number Diff line
@@ -2261,6 +2261,7 @@ static struct scsi_host_template driver_template = {
	.max_sectors		= TW_MAX_SECTORS,
	.cmd_per_lun		= TW_MAX_CMDS_PER_LUN,	
	.use_clustering		= ENABLE_CLUSTERING,
	.use_sg_chaining	= ENABLE_SG_CHAINING,
	.shost_attrs		= tw_host_attrs,
	.emulated		= 1
};
+1 −0
Original line number Diff line number Diff line
@@ -3575,6 +3575,7 @@ static struct scsi_host_template Bus_Logic_template = {
	.unchecked_isa_dma = 1,
	.max_sectors = 128,
	.use_clustering = ENABLE_CLUSTERING,
	.use_sg_chaining = ENABLE_SG_CHAINING,
};

/*
+2 −1
Original line number Diff line number Diff line
@@ -1066,7 +1066,8 @@ static struct scsi_host_template driver_template =
     .sg_tablesize      	= 32			/*SG_ALL*/ /*SG_NONE*/, 
     .cmd_per_lun       	= 1			/* commands per lun */, 
     .unchecked_isa_dma 	= 1			/* unchecked_isa_dma */,
     .use_clustering    	= ENABLE_CLUSTERING                               
     .use_clustering    	= ENABLE_CLUSTERING,
     .use_sg_chaining           = ENABLE_SG_CHAINING,
};

#include "scsi_module.c"
Loading