mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 18:36:39 +07:00
af558e33be
Rewrite grace period code to unify management of grace period across lockd and nfsd. The current code has lockd and nfsd cooperate to compute a grace period which is satisfactory to them both, and then individually enforce it. This creates a slight race condition, since the enforcement is not coordinated. It's also more complicated than necessary. Here instead we have lockd and nfsd each inform common code when they enter the grace period, and when they're ready to leave the grace period, and allow normal locking only after both of them are ready to leave. We also expect the locks_start_grace()/locks_end_grace() interface here to be simpler to build on for future cluster/high-availability work, which may require (for example) putting individual filesystems into grace, or enforcing grace periods across multiple cluster nodes. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
11 lines
292 B
Makefile
11 lines
292 B
Makefile
#
|
|
# Makefile for the linux lock manager stuff
|
|
#
|
|
|
|
obj-$(CONFIG_LOCKD) += lockd.o
|
|
|
|
lockd-objs-y := clntlock.o clntproc.o host.o svc.o svclock.o svcshare.o \
|
|
svcproc.o svcsubs.o mon.o xdr.o grace.o
|
|
lockd-objs-$(CONFIG_LOCKD_V4) += xdr4.o svc4proc.o
|
|
lockd-objs := $(lockd-objs-y)
|