Whamcloud - gitweb
LU-6202 libcfs: replace libcfs_register_ioctl with a blocking notifier_chain 84/33284/4
authorNeilBrown <neilb@suse.com>
Fri, 5 Oct 2018 13:02:41 +0000 (09:02 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 10 Oct 2018 01:50:49 +0000 (01:50 +0000)
commitfba98579efc4fe3bb69309041b60d7723475b5e2
tree7b611fe95a096ede70b5a5a0f31ad0a22c1066e7
parent7fa0fd41577001629f7ecc418cfe814a46207148
LU-6202 libcfs: replace libcfs_register_ioctl with a blocking notifier_chain

libcfs allows other modules to register handlers for ioctls.
The implementation it uses for this is nearly identical to a
blocking notifier chain, so change to use that.

The biggest difference is that the return value from notifier has a
defined format, where libcfs_register_ioctl uses -EINVAL to mean
"continue".  This requires a little bit of conversion.

Linux-commit: 912a846027c203370f4837a2b2db7ba2ebe1b47c

Change-Id: I84657fc1befd004eb09de37b5549af8bff034738
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/33284
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Ben Evans <bevans@cray.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs.h
libcfs/libcfs/module.c
lnet/include/lnet/lib-lnet.h
lnet/lnet/module.c
lnet/selftest/conctl.c
lnet/selftest/console.c
lnet/selftest/console.h