Whamcloud - gitweb
LU-9558 libcfs: replace set_task_state() with set_current_state() 56/27556/3
authorJames Simmons <uja.ornl@yahoo.com>
Tue, 13 Jun 2017 01:48:21 +0000 (21:48 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 16 Jun 2017 16:57:20 +0000 (16:57 +0000)
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 <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/27556
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/libcfs/linux/linux-debug.c

index 4db7b4a..72a3a4f 100644 (file)
@@ -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();
 }