From: James Simmons Date: Tue, 13 Jun 2017 01:48:21 +0000 (-0400) Subject: LU-9558 libcfs: replace set_task_state() with set_current_state() X-Git-Tag: 2.10.0-RC1~15 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=a5b021944ef07409c4f3fd45531743ab78fc881f LU-9558 libcfs: replace set_task_state() with set_current_state() Linxu commit 642fa448ae6b3a4e5e8737054a094173405b7643 removed the set_task_state() for reasons stated in the commit. The solution is to move to set_current_state(). Change-Id: I8e5024fdf7e80f85ad20a5b9343abf6c40a9f339 Signed-off-by: James Simmons Reviewed-on: https://review.whamcloud.com/27556 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bob Glossman Reviewed-by: Doug Oucharek Reviewed-by: Dmitry Eremin Reviewed-by: Oleg Drokin --- diff --git a/libcfs/libcfs/linux/linux-debug.c b/libcfs/libcfs/linux/linux-debug.c index 4db7b4ac..72a3a4f 100644 --- a/libcfs/libcfs/linux/linux-debug.c +++ b/libcfs/libcfs/linux/linux-debug.c @@ -117,7 +117,7 @@ void lbug_with_loc(struct libcfs_debug_msg_data *msgdata) libcfs_debug_dumplog(); if (libcfs_panic_on_lbug) panic("LBUG"); - set_task_state(current, TASK_UNINTERRUPTIBLE); + set_current_state(TASK_UNINTERRUPTIBLE); while (1) schedule(); }