Patch "sd: Fix discard granularity when LBPRZ=1" has been added to the 4.5-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
sd: Fix discard granularity when LBPRZ=1
to the 4.5-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
sd-fix-discard-granularity-when-lbprz-1.patch
and it can be found in the queue-4.5 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
6540a65da90c09590897310e31993b1f6e28485aMon Sep 17 00:00:00 2001
From: "Martin K. Petersen" <[email protected]>
Date: Sat, 5 Mar 2016 17:52:02 -0500
Subject: sd: Fix discard granularity when LBPRZ=1
From: Martin K. Petersen <[email protected]>
commit 6540a65da90c09590897310e31993b1f6e28485a upstream.
Commit 397737223c59 ("sd: Make discard granularity match logical block size when LBPRZ=1") accidentally set the granularity to one byte instead of one logical block on devices that provide deterministic zeroes after UNMAP.
--- drivers/scsi/sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/sd.c +1 -1
@@ -648,7 +648,7 @@ static void sd_config_discard(struct scs*/ 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;
Patches currently in stable-queue which might be from [email protected] are
queue-4.5/be2iscsi-set-the-boot_kset-pointer-to-null-in-case-of-failure.patch queue-4.5/ncr5380-correctly-clear-command-pointers-and-lists-after-bus-reset.patch queue-4.5/ncr5380-call-scsi_eh_prep_cmnd-and-scsi_eh_restore_cmnd-as-and-when-appropriate.patch queue-4.5/ncr5380-forget-aborted-commands.patch queue-4.5/sg-fix-dxferp-in-from_to-case.patch queue-4.5/ncr5380-dont-release-lock-for-pio-transfer.patch queue-4.5/aacraid-fix-memory-leak-in-aac_fib_map_free.patch queue-4.5/scsi-storvsc-fix-srb_status_aborted-handling.patch queue-4.5/aacraid-fix-rrq-overload.patch queue-4.5/ncr5380-dont-re-enter-ncr5380_select.patch queue-4.5/aacraid-set-correct-msix-count-for-eeh-recovery.patch queue-4.5/aic7xxx-fix-queue-depth-handling.patch queue-4.5/ncr5380-fix-ncr5380_select-eh-checks-and-result-handling.patch queue-4.5/sd-fix-discard-granularity-when-lbprz-1.patch