* [patch 17/18] scsi: select CRC_T10DIF only when necessary
@ 2008-08-20 23:55 akpm
2008-08-21 14:01 ` Martin K. Petersen
0 siblings, 1 reply; 5+ messages in thread
From: akpm @ 2008-08-20 23:55 UTC (permalink / raw)
To: James.Bottomley; +Cc: linux-scsi, akpm, stefanr, martin.petersen
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/scsi/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN drivers/scsi/Kconfig~scsi-select-crc_t10dif-only-when-necessary drivers/scsi/Kconfig
--- a/drivers/scsi/Kconfig~scsi-select-crc_t10dif-only-when-necessary
+++ a/drivers/scsi/Kconfig
@@ -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,
_
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch 17/18] scsi: select CRC_T10DIF only when necessary
2008-08-20 23:55 [patch 17/18] scsi: select CRC_T10DIF only when necessary akpm
@ 2008-08-21 14:01 ` Martin K. Petersen
2008-08-21 14:19 ` James Bottomley
0 siblings, 1 reply; 5+ messages in thread
From: Martin K. Petersen @ 2008-08-21 14:01 UTC (permalink / raw)
To: akpm; +Cc: James.Bottomley, linux-scsi, stefanr, martin.petersen
- select CRC_T10DIF
+ select CRC_T10DIF if BLK_DEV_INTEGRITY
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch 17/18] scsi: select CRC_T10DIF only when necessary
2008-08-21 14:01 ` Martin K. Petersen
@ 2008-08-21 14:19 ` James Bottomley
2008-08-21 14:49 ` Martin K. Petersen
0 siblings, 1 reply; 5+ messages in thread
From: James Bottomley @ 2008-08-21 14:19 UTC (permalink / raw)
To: Martin K. Petersen; +Cc: akpm, linux-scsi, stefanr
On Thu, 2008-08-21 at 10:01 -0400, Martin K. Petersen wrote:
> - select CRC_T10DIF
> + select CRC_T10DIF if BLK_DEV_INTEGRITY
>
> Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch 17/18] scsi: select CRC_T10DIF only when necessary
2008-08-21 14:19 ` James Bottomley
@ 2008-08-21 14:49 ` Martin K. Petersen
2008-08-21 15:07 ` James Bottomley
0 siblings, 1 reply; 5+ messages in thread
From: Martin K. Petersen @ 2008-08-21 14:49 UTC (permalink / raw)
To: James Bottomley; +Cc: Martin K. Petersen, akpm, linux-scsi, stefanr
>>>>> "James" == James Bottomley <James.Bottomley@HansenPartnership.com> 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.
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch 17/18] scsi: select CRC_T10DIF only when necessary
2008-08-21 14:49 ` Martin K. Petersen
@ 2008-08-21 15:07 ` James Bottomley
0 siblings, 0 replies; 5+ messages in thread
From: James Bottomley @ 2008-08-21 15:07 UTC (permalink / raw)
To: Martin K. Petersen; +Cc: akpm, linux-scsi, stefanr
On Thu, 2008-08-21 at 10:49 -0400, Martin K. Petersen wrote:
> >>>>> "James" == James Bottomley <James.Bottomley@HansenPartnership.com> 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.
Oh, OK ... I missed that bit, Thanks!
James
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-08-21 15:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-20 23:55 [patch 17/18] scsi: select CRC_T10DIF only when necessary akpm
2008-08-21 14:01 ` Martin K. Petersen
2008-08-21 14:19 ` James Bottomley
2008-08-21 14:49 ` Martin K. Petersen
2008-08-21 15:07 ` James Bottomley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox