ips - Issue IPS_CACHE_FLUSH_CMD to the controller on BUF_CMD_FLUSH
authorYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Wed, 15 Sep 2010 05:07:56 +0000 (14:07 +0900)
committerYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Wed, 15 Sep 2010 05:10:12 +0000 (14:10 +0900)
commitac8b35f8e5dea753a3e43f8183dc547946cc6fc9
tree2eca8065569b7641b06bbbca2ccdfae3975b3d55
parentfbd682a66c7c7db013e70241f0c51a5466c4c7d4
ips - Issue IPS_CACHE_FLUSH_CMD to the controller on BUF_CMD_FLUSH

Previously, BUF_CMD_FLUSH ended up as a zero-byte write command, which
always fails, flooding the console with `iobuf error 5'.  Filesystems
other than HAMMER almost never issues this command, so we've never
seen the error message in pre-HAMMER days.  This commit adds a new path
for BUF_CMD_FLUSH and issue IPS_CACHE_FLUSH_CMD for it.

Also mention the tunable/sysctl knob debug.ips.ignore_flush_cmd in ips(4)
man page in case the new behavior confuses your controller; when set, the
driver just discards BUF_CMD_FLUSH.
share/man/man4/ips.4
sys/dev/raid/ips/ips_commands.c