Whamcloud - gitweb
LU-6636 libcfs: minor fix in cfs_hash_for_each_relax() 27/14927/2
authorNiu Yawei <yawei.niu@intel.com>
Mon, 25 May 2015 11:19:56 +0000 (07:19 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 10 Jun 2015 03:00:05 +0000 (03:00 +0000)
commit81860d817411a0c33594b42e7daa4f57665274a3
treedc4dd55764762a61196f2fbb8122712e5ea5fa58
parent6c1f7d3177057f91ece1a6ee02753d6b40024268
LU-6636 libcfs: minor fix in cfs_hash_for_each_relax()

cfs_hash_for_each_relax() should break iteration when callback
returns non-zero value.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: I92d35be4b11931cae252646ab2d1f8e5599037f1
Reviewed-on: http://review.whamcloud.com/14927
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/libcfs/hash.c