aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre
diff options
context:
space:
mode:
authorThomas Avery <tavery321@gmail.com>2018-03-05 14:33:49 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-06 04:22:17 -0800
commit08c5e116569549d07d69b0839f944d8188b1c4b4 (patch)
tree05f916e52d5b8b26735eb35a3431827cf1f4816d /drivers/staging/lustre
parentstaging: pi433: fix CamelCase for paRamp enum (diff)
downloadlinux-dev-08c5e116569549d07d69b0839f944d8188b1c4b4.tar.xz
linux-dev-08c5e116569549d07d69b0839f944d8188b1c4b4.zip
staging: lustre: Remove yield() call
Remove yield() call. In this case it's use is considered broken, since it is being assumed that yield() will let another process run that will make the event true. Signed-off-by: Thomas Avery <tavery321@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r--drivers/staging/lustre/lustre/obdclass/obd_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/obdclass/obd_config.c b/drivers/staging/lustre/lustre/obdclass/obd_config.c
index 997c0f9aafb5..277576b586db 100644
--- a/drivers/staging/lustre/lustre/obdclass/obd_config.c
+++ b/drivers/staging/lustre/lustre/obdclass/obd_config.c
@@ -455,7 +455,7 @@ static int class_cleanup(struct obd_device *obd, struct lustre_cfg *lcfg)
spin_unlock(&obd->obd_dev_lock);
while (obd->obd_conn_inprogress > 0)
- yield();
+ cond_resched();
smp_rmb();
if (lcfg->lcfg_bufcount >= 2 && LUSTRE_CFG_BUFLEN(lcfg, 1) > 0) {