scsi: select CRC_T10DIF only when necessary
PATCH 17/18 scsi: select CRC_T10DIF only when necessary
From: Stefan Richter <[email protected]>
---
drivers/scsi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/Kconfig renamed from drivers/scsi/Kconfig~scsi-select-crc_t10dif-only-when-necessary +1 -1
@@ -63,7 +63,7 @@ comment "SCSI support type (disk, tape, config BLK_DEV_SD tristate "SCSI disk support" depends on SCSI - select CRC_T10DIF + select CRC_T10DIF if BLK_DEV_INTEGRITY ---help--- If you want to use SCSI hard disks, Fibre Channel disks, Serial ATA (SATA) or Parallel ATA (PATA) hard disks,
_
- select CRC_T10DIF
+ select CRC_T10DIF if BLK_DEV_INTEGRITY
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
James Bottomley
maintainerQuoted 4 lines · Martin K. Petersen
drivers/scsi/Kconfig renamed from drivers/scsi/Kconfig~scsi-select-crc_t10dif-only-when-necessary +1
-1- select CRC_T10DIF + select CRC_T10DIF if BLK_DEV_INTEGRITY
Actually, I don't think this is right at all.
This is a purely cosmetic fix and the tip of the iceberg. If not compiling in the integrity code matters on grounds of kernel bloat, and I think it does, then the correct fix is to make sure none of it compiles into SD if BLK_DEV_INTEGRITY isn't set.
James
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"James" == James Bottomley <[email protected]> writes:
James> Actually, I don't think this is right at all.
James> This is a purely cosmetic fix and the tip of the iceberg. If James> not compiling in the integrity code matters on grounds of James> kernel bloat, and I think it does, then the correct fix is to James> make sure none of it compiles into SD if BLK_DEV_INTEGRITY James> isn't set.
The only code that currently uses the T10 CRC is in sd_dif.c. And that file isn't compiled in if BLK_DEV_INTEGRITY isn't set.
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
James Bottomley
maintainerQuoted 4 lines · Martin K. Petersen
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"James" == James Bottomley <[email protected]> writes:
James> Actually, I don't think this is right at all.
Quoted 8 lines
James> This is a purely cosmetic fix and the tip of the iceberg. If James> not compiling in the integrity code matters on grounds of James> kernel bloat, and I think it does, then the correct fix is to James> make sure none of it compiles into SD if
BLK_DEV_INTEGRITYJames> isn't set.The only code that currently uses the T10 CRC is in
sd_dif.c. And that file isn't compiled in ifBLK_DEV_INTEGRITYisn't set.
Oh, OK ... I missed that bit, Thanks!
James