diff options
-rw-r--r-- | drivers/scsi/scsi_lib.c | 6 |
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 | ||
50 | static struct kmem_cache *scsi_sdb_cache; | 54 | static struct kmem_cache *scsi_sdb_cache; |
51 | static struct kmem_cache *scsi_sense_cache; | 55 | static struct kmem_cache *scsi_sense_cache; |