libata-scsi: Fix translation of REPORT ZONES command
authorDamien Le Moal <damien.lemoal@hgst.com>
Thu, 14 Jul 2016 00:05:49 +0000 (09:05 +0900)
committerTejun Heo <tj@kernel.org>
Fri, 15 Jul 2016 12:08:13 +0000 (08:08 -0400)
commit3f17422b425afd91f4fb45b8f47ffd61b02c0bb8
tree446678f58dfa60dfc60a5ac2cda6ef99fcf4c261
parent5b844b63ddfb65aef923eaabe0420196fd71dd13
libata-scsi: Fix translation of REPORT ZONES command

Include reporting options when translating REPORT ZONES commmand to
ATA NCQ, and make sure we only look at the actually specified bits
in the CDB for the options.

Signed-off-by: Damien Le Moal <damien.lemoal@hgst.com>
[hch: update patch description]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-scsi.c