]> git.proxmox.com Git - mirror_zfs.git/commit
Decouple arc_read_done callback from arc buf instantiation
authorMatthew Macy <mmacy@freebsd.org>
Wed, 9 Dec 2020 23:05:06 +0000 (15:05 -0800)
committerGitHub <noreply@github.com>
Wed, 9 Dec 2020 23:05:06 +0000 (15:05 -0800)
commit1e4732cbda8eb0c95901ed9f924b5a13bf24c76e
tree0a480e1fce09aaa2fe99a60575757e7da8409fe5
parentedb20ff3bab31f9e07578a7bf8279d67b821f29a
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
include/sys/arc.h
module/zfs/arc.c
module/zfs/dbuf.c