diff options
| author | Alexander Zarochentsev <alexander_zarochentsev@xyratex.com> | 2016-09-18 16:37:04 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-19 09:24:10 +0200 |
| commit | 2e1ff4515adf956a47d98b2a711e2775f2406d44 (patch) | |
| tree | 58c095717a8606645b2ad9fc2015f723a2fbc970 /tools/perf/scripts/python/bin | |
| parent | 1d62e09c2dd3c74e9244e550f2197f075999b0e1 (diff) | |
| download | linux-2e1ff4515adf956a47d98b2a711e2775f2406d44.tar.gz linux-2e1ff4515adf956a47d98b2a711e2775f2406d44.zip | |
staging: lustre: obdclass: optimize busy loop wait
two optimizations in the busy loop wait in class_cleanup():
(1) remove unnecessary spinlocks protecting obd_conn_inprogress
access
(2) replace cond_resched by more suitable yield to unconditionally
yield the CPU if the condition check fails.
Signed-off-by: Alexander Zarochentsev <alexander_zarochentsev@xyratex.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5397
Xyratex-bug-id: MRP-1991
Reviewed-on: http://review.whamcloud.com/11198
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
