]> granicus.if.org Git - zfs/commit
Don't count embedded bps in read stats
authorTom Caputi <tcaputi@datto.com>
Sat, 24 Mar 2018 04:35:19 +0000 (00:35 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 24 Mar 2018 04:35:19 +0000 (21:35 -0700)
commit157ef7f6a527239e3cb3afa3be2acf502794a5d4
treef5b4335384f5288f0f86960e42f58e079bfcf078
parent387b6856d6d6997ae5849b8ad9155433fff6f077
Don't count embedded bps in read stats

Currently, ZFS tracks statistics about calls to arc_read()
via the /proc/spl/kstat/zfs/<pool>/reads file for debugging.
Unfortunately, this file currently counts embedded bps as
disk reads since they are technically processed by the ZIO
layer. This pollutes the log since the ARC will never cache
embedded bps. This patch  corrects this issue by preventing
the logging of embedded bp reads.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #7334
module/zfs/arc.c