aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/arc.h
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2020-12-09 15:05:06 -0800
committerGitHub <[email protected]>2020-12-09 15:05:06 -0800
commit1e4732cbda8eb0c95901ed9f924b5a13bf24c76e (patch)
tree0a480e1fce09aaa2fe99a60575757e7da8409fe5 /include/sys/arc.h
parentedb20ff3bab31f9e07578a7bf8279d67b821f29a (diff)
Decouple arc_read_done callback from arc buf instantiation
Add ARC_FLAG_NO_BUF to indicate that a buffer need not be instantiated. This fixes a ~20% performance regression on cached reads due to zfetch changes. Reviewed-by: Tony Nguyen <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Matthew Ahrens <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #11220 Closes #11232
Diffstat (limited to 'include/sys/arc.h')
-rw-r--r--include/sys/arc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sys/arc.h b/include/sys/arc.h
index a0852b4d5..9ade1a432 100644
--- a/include/sys/arc.h
+++ b/include/sys/arc.h
@@ -155,6 +155,11 @@ typedef enum arc_flags
ARC_FLAG_CACHED_ONLY = 1 << 22,
/*
+ * Don't instantiate an arc_buf_t for arc_read_done.
+ */
+ ARC_FLAG_NO_BUF = 1 << 23,
+
+ /*
* The arc buffer's compression mode is stored in the top 7 bits of the
* flags field, so these dummy flags are included so that MDB can
* interpret the enum properly.