[LU-13255] Abstract code for wait-with-periodic-warning Created: 17/Feb/20  Updated: 31/Mar/20  Resolved: 31/Mar/20

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.14.0

Type: Task Priority: Minor
Reporter: Neil Brown Assignee: Neil Brown
Resolution: Fixed Votes: 0
Labels: None

Rank (Obsolete): 9223372036854775807

 Description   

Lustre has a recurring pattern of waiting for an event and issuing a warning every second while the event hasn't happened.  The warning is often set to a higher priority with an exponentially decreasing rate - so after 1,2,4,8,16 seconds etc it is a warning rather than an informational message.

It would improve code readability and maintainability to encapsulate this pattern in a macro: wait_var_event_warning()



 Comments   
Comment by Gerrit Updater [ 17/Feb/20 ]

Neil Brown (neilb@suse.de) uploaded a new patch: https://review.whamcloud.com/37593
Subject: LU-13255 lnet: introduce wait_var_event_warning.
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 1c6cadf8ea8753d6645a2f0ade2c09da22643140

Comment by Gerrit Updater [ 17/Feb/20 ]

Neil Brown (neilb@suse.de) uploaded a new patch: https://review.whamcloud.com/37594
Subject: LU-13255 gnilnd: Use wait_var_event_warning()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 2e329c8c6c560a71e1d20f5ff80369da10ecbd11

Comment by Gerrit Updater [ 17/Mar/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37593/
Subject: LU-13255 lnet: introduce wait_var_event_warning.
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 9a0ed2bc507016b555e8e4641b22535468e051c4

Comment by Gerrit Updater [ 31/Mar/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37594/
Subject: LU-13255 gnilnd: Use wait_var_event_warning()
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 8f4d61088cbd0e5b7cfbaac3d6291902fa0ce8a8

Comment by Peter Jones [ 31/Mar/20 ]

Landed for 2.14

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