diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index d749da765df141d7aa66ef2a31e591f6cbc94fed..5a5457ac9cdb4560a29be20d28f3a31b4556b578 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -648,7 +648,7 @@ static void sd_config_discard(struct scsi_disk *sdkp, unsigned int mode) */ if (sdkp->lbprz) { q->limits.discard_alignment = 0; - q->limits.discard_granularity = 1; + q->limits.discard_granularity = logical_block_size; } else { q->limits.discard_alignment = sdkp->unmap_alignment * logical_block_size;