summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/scsi_lib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index 45b43e97505c..30cbea57ea08 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -43,9 +43,13 @@
43 * Size of integrity metadata is usually small, 1 inline sg should 43 * Size of integrity metadata is usually small, 1 inline sg should
44 * cover normal cases. 44 * cover normal cases.
45 */ 45 */
46#ifdef CONFIG_ARCH_NO_SG_CHAIN
47#define SCSI_INLINE_PROT_SG_CNT 0
48#define SCSI_INLINE_SG_CNT 0
49#else
46#define SCSI_INLINE_PROT_SG_CNT 1 50#define SCSI_INLINE_PROT_SG_CNT 1
47
48#define SCSI_INLINE_SG_CNT 2 51#define SCSI_INLINE_SG_CNT 2
52#endif
49 53
50static struct kmem_cache *scsi_sdb_cache; 54static struct kmem_cache *scsi_sdb_cache;
51static struct kmem_cache *scsi_sense_cache; 55static struct kmem_cache *scsi_sense_cache;