Whamcloud - gitweb
LU-12634 libcfs: force_sig() removed task parameter 45/35745/8
authorShaun Tancheff <stancheff@cray.com>
Tue, 5 Nov 2019 05:12:20 +0000 (23:12 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 6 Dec 2019 01:06:57 +0000 (01:06 +0000)
commitdb9f9543ecb396c5187368811132411a80485174
treea548151bc27efc0c8a6d97291294ade684085880
parentacd5f520af904aa0e7763ca7f6a05c9d087c22ef
LU-12634 libcfs: force_sig() removed task parameter

Linux 5.3 removed the task parameter for force_sig()
signal: Remove task parameter from force_sig

When force_sig() is not available reset the target thread
default handler to SIG_DFL and proceed to use send_sig(..., 1)
which eventually marshals the same signal to the target task.

kernel-commit: 3cf5d076fb4d48979f382bc9452765bf8b79e740

NOTE: force_sig() is used here instead of a wake_up_process() as tasks
      may be blocked on rpc activity.

Test-Parameters: trivial
Cray-bug-id: LUS-7689
Signed-off-by: Shaun Tancheff <stancheff@cray.com>
Change-Id: Ic28f604d985f7e6c3c3dea8bc284c6f2e212f45c
Reviewed-on: https://review.whamcloud.com/35745
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Petros Koutoupis <pkoutoupis@cray.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/libcfs.h
lustre/lfsck/lfsck_lib.c