Whamcloud - gitweb
LU-13783 libcfs: don't depend on sysctl support for debugfs 32/40832/4
authorMr NeilBrown <neilb@suse.de>
Thu, 12 Nov 2020 00:16:28 +0000 (11:16 +1100)
committerOleg Drokin <green@whamcloud.com>
Tue, 16 Mar 2021 18:17:06 +0000 (18:17 +0000)
commitd707b390aec5e95a1aec9910fb3c8248c231cbfb
treeff0dee6cc5bad467ae92d5f2e8fea850b8da7dce
parent2a32eaa35dd7b96bb29f6a17991f48fe07fa833e
LU-13783 libcfs: don't depend on sysctl support for debugfs

Since Linux v5.8-rc1~55^2~6 sysctl support routines like
proc_dointvec() expect a pointer to kernel-space, not userspace.

So stop using these function for debugfs files, and instead
provide bespoke functions.

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I340a748bbfbd066054a73299ce32698aa39a0e2d
Reviewed-on: https://review.whamcloud.com/40832
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs.h
libcfs/libcfs/module.c
lnet/lnet/router_proc.c