Jeff Garzik wrote:
Mark Lord wrote:
Tejun Heo wrote:
..
sd forces disk revalidation (and thus ordered reconfiguration) if you
change cache mode via /sys/class/scsi_disk/X\:0\:0\:0/cache_type.
That's not implemented for libata --> the emulation in libata-scsi
rejects any attempt at a MODE_SELECT command, which is what the sysfs
attr triggers.
I see. I was just grepping for revalidation call. It seems we're stuck
then.
Wasn't there a patch to implement MODE_SELECT in libata once upon a time?
A couple iterations from Douglas Gilbert, probably in linux-scsi
archives...
BTW, libata needs to trap IDENTIFY*DEVICE and update its cached copy of
the identify page, whenever MODE SELECT or another independent entity
issues IDENTIFY*DEVICE.
Right. Also, we need to snoop some passthrough commands and
revalidate/reconfigure when configuration is explicitly changed.
--
tejun
-
: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html