]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ata: sata_nv: Fix retrieving of active qcs
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 8 May 2020 05:28:19 +0000 (07:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:08:38 +0000 (11:08 +0100)
commitb19305641e3c0c4b3758606b7bf6e57256094a1f
treea972d4914e9fcdb66539e72bc54b87ec82daf7ec
parent2380b57afdcca42c3a529969c7f460cadb44892c
ata: sata_nv: Fix retrieving of active qcs

[ Upstream commit 8e4c309f9f33b76c09daa02b796ef87918eee494 ]

ata_qc_complete_multiple() has to be called with the tags physically
active, that is the hw tag is at bit 0. ap->qc_active has the same tag
at bit ATA_TAG_INTERNAL instead, so call ata_qc_get_active() to fix that
up. This is done in the vein of 8385d756e114 ("libata: Fix retrieving of
active qcs").

Fixes: 28361c403683 ("libata: add extra internal command")
Tested-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ata/sata_nv.c