libata: remove assumption that ATA_MAX_QUEUE - 1 is the max
authorJens Axboe <axboe@kernel.dk>
Fri, 11 May 2018 18:51:07 +0000 (12:51 -0600)
committerTejun Heo <tj@kernel.org>
Fri, 11 May 2018 20:10:43 +0000 (13:10 -0700)
commit9d207accca2c262206d0a9327ef1444c70cc0bdf
treeb75c06516fd9545db853c20dc1320e2728620277
parent2e2cc676cee8962cdc82a23723df2fb394d35c64
libata: remove assumption that ATA_MAX_QUEUE - 1 is the max

In a few spots we iterate to ATA_MAX_QUEUE -1, including internal
knowledge that the last tag is the internal tag. Remove this
assumption.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-eh.c