]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Client: support using dentry invalidation callbacks on older kernels
authorGreg Farnum <gfarnum@redhat.com>
Thu, 26 Feb 2015 23:12:47 +0000 (15:12 -0800)
committerGreg Farnum <gfarnum@redhat.com>
Thu, 26 Feb 2015 23:23:21 +0000 (15:23 -0800)
commit694529ae7d0407c5d2f19d8fce8d1a5567bd8042
treecb30e5761b9ace912a1fceae353df38e219dea19
parenta6ebf6786bc683e50f7d57c5501058daa1b867be
Client: support using dentry invalidation callbacks on older kernels

This brings back a few small code chunks that were removed in
0827bb79ea5127e6763f6e904dfa1a3266046ffb. We check the kernel version,
and if it is less than 3.18 we use these dentry invalidation callbacks
instead of the remount callback. This should resolve a number of
issues with racing against remount, including #10916, and lets older
unprivileged users on older kernels run even if they can't apply
options on mount (#10542).

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/client/Client.cc
src/client/Client.h
src/common/config_opts.h