b=19557
i=adilger
i=andrew
add cond_resched() calls to lustre_hash_for_each_empty() to avoid hogging
the cpu when many locks to process on disconnect/eviction.
Details : fix locking issue in the rename path which could race with any
other operations updating the same directory.
+Severity : normal
+Bugzilla : 19557
+Description: BUG: soft lockup - CPU#1 stuck for 10s! [ll_mdt_07:4523]
+Details : add cond_resched() calls to avoid hogging the cpu for too long
+ in the hash code.
+
+
-------------------------------------------------------------------------------
2009-10-16 Sun Microsystems, Inc.
* version 1.8.1.1
lh_read_unlock(lh);
func(obj, data);
(void)lh_put(lh, hnode);
+ cfs_cond_resched();
goto restart;
}
write_unlock(&lhb->lhb_rwlock);
if (export != NULL)
class_export_destroy(export);
-
+ cfs_cond_resched();
} while (import != NULL || export != NULL);
}
lc_watchdog_disable(thread->t_watchdog);
- cond_resched();
+ cfs_cond_resched();
l_wait_event_exclusive (svc->srv_waitq,
((thread->t_flags & SVC_STOPPING) != 0 &&