Whamcloud - gitweb
LU-9859 libcfs: discard cfs_block_sigsinv() 30/38530/2
authorMr NeilBrown <neilb@suse.de>
Thu, 7 May 2020 13:09:24 +0000 (09:09 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 20 May 2020 08:25:44 +0000 (08:25 +0000)
commite82516955fdfbcad390f2fc36a84f24ec3b42a69
tree612e5c06a2875f983027cd94c8f43aceed049752
parent21c11516b1a3511b0aaa34d8faaaff63c4117993
LU-9859 libcfs: discard cfs_block_sigsinv()

cfs_block_sigsinv() and cfs_restore_sigs() are simple
wrappers which save a couple of line of code and
hurt readability for people not familiar with them.
They aren't used often enough to be worthwhile,
so discard them and open-code the functionality.

The sigorsets() call isn't needed as or-ing with current->blocked is
exactly what sigprocmask(SIG_BLOCK) does.

Linux-commit: 6afe572bc76688cd840032254217a4877b66e916

Change-Id: Ia9189e0885dffb098df7abef09db42ecb49196cd
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-on: https://review.whamcloud.com/38530
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs.h
libcfs/include/libcfs/linux/linux-misc.h
libcfs/include/libcfs/linux/linux-wait.h
lustre/llite/llite_mmap.c
lustre/ptlrpc/client.c