OSDN Git Service

libata: add extra internal command
authorJens Axboe <axboe@kernel.dk>
Fri, 11 May 2018 18:51:09 +0000 (12:51 -0600)
committerTejun Heo <tj@kernel.org>
Fri, 11 May 2018 20:10:44 +0000 (13:10 -0700)
commit28361c403683c2b00d4f5e76045f3ccd299bf99d
treebcfd75dd3334fb180bdfd81669f4caa8189c1685
parentba80c3a572f4db2153a1a94c02f27a4566ca0995
libata: add extra internal command

Bump the internal tag to 32, instead of stealing the last tag in
our regular command space. This works just fine, since we don't
actually need a separate hardware tag for this. Internal commands
cannot coexist with NCQ commands.

As a bonus, we get rid of the special casing of what tag to use
for the internal command.

This is in preparation for utilizing all 32 commands for normal IO.

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