]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
libata: Fix regression when the NCQ Send and Receive log page is absent
authorMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 May 2015 23:44:17 +0000 (19:44 -0400)
committerTejun Heo <tj@kernel.org>
Thu, 21 May 2015 21:52:55 +0000 (17:52 -0400)
commiteab6ee1ce3c4678224d70338134f7a02005768cb
treed80fbf93e56fd1cf8a4255ccb6883552cf636219
parent6ec0a86c645be3fce7ade42f165a6a417c3503b1
libata: Fix regression when the NCQ Send and Receive log page is absent

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.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Reported-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Tested-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-eh.c