libata-scsi: fix SET FEATURES "filtering" for ata_msense_caching()
authorTom Yan <tom.ty89@gmail.com>
Tue, 12 Jul 2016 13:37:02 +0000 (21:37 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 12 Jul 2016 14:52:49 +0000 (10:52 -0400)
commit0c12735e8abf4734b011aec979092db5e63556b0
tree897c3d5a9ac676ee834349e5bc411cb01679d969
parent56b8cbabb422366e89577c5862ce0aa79cada240
libata-scsi: fix SET FEATURES "filtering" for ata_msense_caching()

Without this fix, the DRA bit of the caching mode page would not
be updated when the read look-ahead feature is toggled (e.g. with
`smartctl --set`), but will only be until, for example, the write
cache feature is touched.

Signed-off-by: Tom Yan <tom.ty89@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-core.c
include/linux/ata.h