Skip to contentSkip to conversation

Patch "libata: Fix regression when the NCQ Send and Receive log page is absent" has been added to the 4.1-stable tree

PATCH [email protected] 1 participant 1 message Jul 30, 2015

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

libata: Fix regression when the NCQ Send and Receive log page is absent

to the 4.1-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:
libata-fix-regression-when-the-ncq-send-and-receive-log-page-is-absent.patch
and it can be found in the queue-4.1 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 eab6ee1ce3c4678224d70338134f7a02005768cb Mon Sep 17 00:00:00 2001

From: "Martin K. Petersen" <[email protected]>
Date: Tue, 19 May 2015 19:44:17 -0400
Subject: libata: Fix regression when the NCQ Send and Receive log page is absent

From: "Martin K. Petersen" <[email protected]>

commit eab6ee1ce3c4678224d70338134f7a02005768cb upstream.

Commit 5d3abf8ff67f ("libata: Fall back to unqueued READ LOG EXT if the DMA variant fails") allowed us to fall back to the unqueued READ LOG variant if the queued version failed. However, if the device did not support the page at all we would end up looping due to a merge snafu.

Ensure we only take the fallback path once.

---
 drivers/ata/libata-eh.c |    1 +
 1 file changed, 1 insertion(+)
drivers/ata/libata-eh.c +1 -0
@@ -1521,6 +1521,7 @@ retry:
 	} else {
 		tf.command = ATA_CMD_READ_LOG_EXT;
 		tf.protocol = ATA_PROT_PIO;
+		dma = false;
 	}
 	tf.lbal = log;
 	tf.lbam = page;

Patches currently in stable-queue which might be from [email protected] are

queue-4.1/block-do-a-full-clone-when-splitting-discard-bios.patch queue-4.1/libata-fix-regression-when-the-ncq-send-and-receive-log-page-is-absent.patch queue-4.1/libata-fall-back-to-unqueued-read-log-ext-if-the-dma-variant-fails.patch queue-4.1/libata-expose-trim-capability-in-sysfs.patch queue-4.1/libata-do-not-blacklist-micron-m500dc.patch queue-4.1/libata-do-not-blacklist-m510dc.patch