[LU-5443] Remove references to defined constant HZ Created: 01/Aug/14  Updated: 11/Dec/14  Resolved: 09/Dec/14

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

Type: Improvement Priority: Minor
Reporter: Jian Yu Assignee: Jian Yu
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Rank (Obsolete): 15157

 Description   

Replace the direct HZ access in Lustre codes with Linux kernel APIs:

jiffies_to_msecs()
jiffies_to_usecs()
jiffies_to_timespec()
msecs_to_jiffies()
usecs_to_jiffies()
timespec_to_jiffies()


 Comments   
Comment by Jian Yu [ 01/Aug/14 ]

Here is the patch to replace direct HZ access in lnet module: http://review.whamcloud.com/11303

Comment by Jian Yu [ 19/Sep/14 ]

Here is the patch to replace direct HZ access in libcfs module: http://review.whamcloud.com/11993

Comment by Jian Yu [ 25/Sep/14 ]

Here is the patch to replace direct HZ access in lustre modules: http://review.whamcloud.com/12052

Comment by Gerrit Updater [ 19/Nov/14 ]

Jian Yu (jian.yu@intel.com) uploaded a new patch: http://review.whamcloud.com/12779
Subject: LU-5443 ldiskfs: replace direct HZ access with kernel APIs
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 73a2f3765e2ec1e9ea91a297caa7d9fc9a61cf16

Comment by Jian Yu [ 19/Nov/14 ]

I just found that the ext4-mmp.patch in ldiskfs directory also used HZ directly.
Here is the patch to replace direct HZ access in ldiskfs module: http://review.whamcloud.com/12779

After all of the above 4 patches are landed, there will be no direct HZ access in Lustre codes.

Comment by Gerrit Updater [ 21/Nov/14 ]

Jian Yu (jian.yu@intel.com) uploaded a new patch: http://review.whamcloud.com/12813
Subject: LU-5443 lnet: replace direct HZ access with kernel APIs
Project: fs/lustre-release
Branch: b2_5
Current Patch Set: 1
Commit: bde2c055bdbe1a4702dd1129153d40061eae5cb4

Comment by Gerrit Updater [ 09/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12779/
Subject: LU-5443 ldiskfs: replace direct HZ access with kernel APIs
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: ad06e5506388a02ee388fe47bbf8e8bc048d705e

Comment by Gerrit Updater [ 09/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/11993/
Subject: LU-5443 libcfs: replace direct HZ access with kernel APIs
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 3af952524b8de40537f7630fb600a73db3626bd7

Comment by James A Simmons [ 09/Dec/14 ]

All patches have landed to master.

Comment by Peter Jones [ 09/Dec/14 ]

Yes - landed for 2.7 - thanks

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