Partially revert 5a6ac4c
commit7ae3f8dc8f1e075108f91ddf6fb16471d4a0f044
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 18 Nov 2019 21:05:56 +0000 (18 13:05 -0800)
committerGitHub <noreply@github.com>
Mon, 18 Nov 2019 21:05:56 +0000 (18 13:05 -0800)
tree14997e04e465358a9e4f6751a26ebf61ee767b93
parent41e1aa2a06f81640c3a3e1a6b12558d95887f662
Partially revert 5a6ac4c

Reinstate the zpl_revalidate() functionality to resolve a regression
where dentries for open files during a rollback are not invalidated.

The unrelated functionality for automatically unmounting .zfs/snapshots
was not reverted.  Nor was the addition of shrink_dcache_sb() to the
zfs_resume_fs() function.

This issue was not immediately caught by the CI because the test case
intended to catch it was included in the list of ZTS tests which may
occasionally fail for unrelated reasons.  Remove all of the rollback
tests from this list to help identify the frequency of any spurious
failures.

The rollback_003_pos.ksh test case exposes a real issue with the
long standing code which needs to be investigated.  Regardless,
it has been enable with a small workaround in the test case itself.

Reviewed-by: Matt Ahrens <matt@delphix.com>
Reviewed-by: Pavel Snajdr <snajpa@snajpa.net>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9587
Closes #9592
config/kernel-dentry-operations.m4
include/os/linux/zfs/sys/zpl.h
module/os/linux/zfs/zfs_vfsops.c
module/os/linux/zfs/zpl_inode.c
tests/test-runner/bin/zts-report.py
tests/zfs-tests/tests/functional/snapshot/rollback_003_pos.ksh