diff options
author | Rob Norris <[email protected]> | 2024-04-04 22:34:54 +1100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2024-04-11 17:17:11 -0700 |
commit | c9c838aa1fca9aef84d74db1d99872c5efa9a25d (patch) | |
tree | 3d838e71611b593e11f61727aeb298a6a2c2f009 /module/zfs/zfs_fm.c | |
parent | cac416f1062fdbd2ff84ff2b40835d4853cbf190 (diff) |
zio: remove io_cmd and DKIOCFLUSHWRITECACHE
There's no other options, so we can just always assume its a flush.
Includes some light refactoring where a switch statement was doing
control flow that no longer works.
Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Rob Norris <[email protected]>
Closes #16064
Diffstat (limited to 'module/zfs/zfs_fm.c')
-rw-r--r-- | module/zfs/zfs_fm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/module/zfs/zfs_fm.c b/module/zfs/zfs_fm.c index 481af2ba8..2f43c4aa4 100644 --- a/module/zfs/zfs_fm.c +++ b/module/zfs/zfs_fm.c @@ -1096,10 +1096,7 @@ zfs_ereport_is_valid(const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio) return (B_FALSE); if (zio != NULL) { - /* - * If this is not a read or write zio, ignore the error. This - * can occur if the DKIOCFLUSHWRITECACHE ioctl fails. - */ + /* If this is not a read or write zio, ignore the error */ if (zio->io_type != ZIO_TYPE_READ && zio->io_type != ZIO_TYPE_WRITE) return (B_FALSE); |