aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lnet/selftest/selftest.h
diff options
context:
space:
mode:
authorPeng Tao <bergwolf@gmail.com>2014-03-18 21:05:56 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-19 13:42:38 -0700
commitd3caf4d58bff2ea2826b99fefc0445bb8acd0356 (patch)
treea3168e7dfcb8cd53becd0dd45163d259913d3e32 /drivers/staging/lustre/lnet/selftest/selftest.h
parentstaging/lustre/libcfs: remove schedule_timeout_and_set_state (diff)
downloadlinux-dev-d3caf4d58bff2ea2826b99fefc0445bb8acd0356.tar.xz
linux-dev-d3caf4d58bff2ea2826b99fefc0445bb8acd0356.zip
staging/lustre/libcfs: remove cfs_pause
Cc: Andreas Dilger <andreas.dilger@intel.com> Cc: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: Peng Tao <bergwolf@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lnet/selftest/selftest.h')
-rw-r--r--drivers/staging/lustre/lnet/selftest/selftest.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lnet/selftest/selftest.h b/drivers/staging/lustre/lnet/selftest/selftest.h
index 228927e0f962..f4806a6bc942 100644
--- a/drivers/staging/lustre/lnet/selftest/selftest.h
+++ b/drivers/staging/lustre/lnet/selftest/selftest.h
@@ -572,7 +572,11 @@ swi_state2str (int state)
#undef STATE2STR
}
-#define selftest_wait_events() cfs_pause(cfs_time_seconds(1) / 10)
+#define selftest_wait_events() \
+ do { \
+ set_current_state(TASK_UNINTERRUPTIBLE); \
+ schedule_timeout(cfs_time_seconds(1) / 10); \
+ } while (0)
#define lst_wait_until(cond, lock, fmt, ...) \