Whamcloud - gitweb
LU-11282 osd-zfs: drop cache immediately 72/33072/7
authorAlex Zhuravlev <bzzz@whamcloud.com>
Fri, 24 Aug 2018 10:43:43 +0000 (14:43 +0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 1 Sep 2018 03:29:41 +0000 (03:29 +0000)
commit17f17e270cd1852bfead8f38ed5a782af9eb26a6
treeab9b3c53936c490c79d180e1f00321a7e327412d
parent7739c8d351e89a82280420b44241b82c220af8f2
LU-11282 osd-zfs: drop cache immediately

if this is requested via:
  lctl set_param osd-zfs.*.readcache_max_filesize=<bytes>

dropping cache at read is almost free, but may take few
cycles at write as we have to find corresponding dbufs.

Change-Id: I107fc1bf5a8d7655da4054048ff07d3dffa9d4d8
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/33072
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-zfs/osd_handler.c
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_io.c
lustre/osd-zfs/osd_lproc.c