Whamcloud - gitweb
LU-5397 obdclass: optimize busy loop wait 98/11198/5
authorAlexander Zarochentsev <alexander_zarochentsev@xyratex.com>
Wed, 23 Jul 2014 20:10:24 +0000 (13:10 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 24 Jul 2014 20:59:36 +0000 (20:59 +0000)
commit7887a397220d84db8b38c6fc4892c3f5c5f3ad01
treecc5d31ddd2081891a70ada7ca97eafd2f79d2f5a
parent0041b3977ec04bd74092dc7ea0e329074c9aba27
LU-5397 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.

Xyratex-bug-id: MRP-1991
Signed-off-by: Alexander Zarochentsev <alexander_zarochentsev@xyratex.com>
Change-Id: I9079b2d04afda7d6db902392c6dcb216706a7ae4
Reviewed-on: http://review.whamcloud.com/11198
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Jenkins
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/obd_config.c