From a5b021944ef07409c4f3fd45531743ab78fc881f Mon Sep 17 00:00:00 2001 From: James Simmons Date: Mon, 12 Jun 2017 21:48:21 -0400 Subject: [PATCH] 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 --- libcfs/libcfs/linux/linux-debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 1.8.3.1