[LU-6636] cfs_hash_for_each_relax() doesn't break iteration as expected Created: 25/May/15  Updated: 10/Jun/15  Resolved: 10/Jun/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.7.0, Lustre 2.8.0
Fix Version/s: Lustre 2.8.0

Type: Bug Priority: Minor
Reporter: Niu Yawei (Inactive) Assignee: Niu Yawei (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

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



 Comments   
Comment by Gerrit Updater [ 25/May/15 ]

Niu Yawei (yawei.niu@intel.com) uploaded a new patch: http://review.whamcloud.com/14927
Subject: LU-6636 libcfs: minor fix in cfs_hash_for_each_relax()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 4230ed50baf8d1af8663c9597c2c37ac4754dfa6

Comment by Andreas Dilger [ 25/May/15 ]

Niu, where is this bug hit, and what is the impact? It looks like it would keep some CPU busy for longer than it should, but it isn't clear what the priority is for the bug.

Comment by Niu Yawei (Inactive) [ 26/May/15 ]

I found this when I try to use this function in my patch, and seems no other users want to break the iteration so far, so I think it's not a high priority bug.

Comment by Gerrit Updater [ 10/Jun/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14927/
Subject: LU-6636 libcfs: minor fix in cfs_hash_for_each_relax()
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 81860d817411a0c33594b42e7daa4f57665274a3

Comment by Peter Jones [ 10/Jun/15 ]

Landed for 2.8

Generated at Sat Feb 10 02:01:55 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.