]> git.proxmox.com Git - mirror_zfs.git/commit
Only record zio->io_delay on reads and writes
authorTony Hutter <hutter2@llnl.gov>
Wed, 2 Aug 2017 16:08:38 +0000 (09:08 -0700)
committerTony Hutter <hutter2@llnl.gov>
Wed, 2 Aug 2017 18:37:18 +0000 (11:37 -0700)
commit07cbcd5089d65a5b8b9769a412833747f045530c
tree14d7934d094874cc3eea954d999f06ef27d1f275
parent12acabe2a49fddbf25e9affc8d920ef679780734
Only record zio->io_delay on reads and writes

While investigating https://github.com/zfsonlinux/zfs/issues/6425 I
noticed that ioctl ZIOs were not setting zio->io_delay correctly.  They
would set the start time in zio_vdev_io_start(), but never set the end
time in zio_vdev_io_done(), since ioctls skip it and go straight to
zio_done().  This was causing spurious "delayed IO" events to appear,
which would eventually get rate-limited and displayed as
"Missed events" messages in zed.

To get around the problem, this patch only sets zio->io_delay for read
and write ZIOs, since that's all we care about anyway.

Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #6425
Closes #6440
module/zfs/zio.c