libata: remove assumption that ATA_MAX_QUEUE - 1 is the max
authorJens Axboe <axboe@kernel.dk>
Fri, 11 May 2018 15:23:29 +0000 (09:23 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 May 2018 18:41:46 +0000 (12:41 -0600)
commitb6a7837a2d15df92111931bd5f86a2d4043d9a9e
tree2450a587ae33c099d501455612d97ef8be0df832
parente168118ef3c1d5e5d5c67293733f52122bd82423
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>
drivers/ata/libata-eh.c