[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: |
|
||||
| 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 |
| Comment by Jian Yu [ 19/Nov/14 ] |
|
I just found that the ext4-mmp.patch in ldiskfs directory also used HZ directly. 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 |
| Comment by Gerrit Updater [ 09/Dec/14 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12779/ |
| Comment by Gerrit Updater [ 09/Dec/14 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/11993/ |
| 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 |