Change SCSI_MAX_SG_SEGMENTS to more correct SG_MAX_SINGLE_ALLOC

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1956 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2010-08-18 12:59:28 +00:00
parent 25025f3a5a
commit e38cc66c2b
+2 -2
View File
@@ -47,7 +47,7 @@
#include <scst_debug.h>
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25))
#define SCSI_MAX_SG_SEGMENTS 128
#define SG_MAX_SINGLE_ALLOC (PAGE_SIZE / sizeof(struct scatterlist))
#endif
#if defined(CONFIG_HIGHMEM4G) || defined(CONFIG_HIGHMEM64G)
@@ -954,7 +954,7 @@ static struct scsi_host_template scst_lcl_ini_driver_template = {
.can_queue = 256,
.this_id = SCST_LOCAL_MAX_TARGETS,
/* SCST doesn't support sg chaining */
.sg_tablesize = SCSI_MAX_SG_SEGMENTS,
.sg_tablesize = SG_MAX_SINGLE_ALLOC,
.cmd_per_lun = 32,
.max_sectors = 0xffff,
/*