mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
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 <tony.nguyen@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #11220 Closes #11232
This commit is contained in:
@@ -154,6 +154,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
|
||||
|
||||
Reference in New Issue
Block a user