]> git.baikalelectronics.ru Git - 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)
commit521c0499914afb58dd0943f5b621c6e19a538d78
treed80fbf93e56fd1cf8a4255ccb6883552cf636219
parent5b52a0b867e0f3aaf9e7e2e2c477d4429b3ac3fe
libata: Fix regression when the NCQ Send and Receive log page is absent

Commit 997c306d1b6a ("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