[LU-16590] Initialize ra_cur_pages Created: 24/Feb/23 Updated: 16/Mar/23 Resolved: 16/Mar/23 |
|
| Status: | Closed |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Patrick Farrell | Assignee: | Patrick Farrell |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Rank (Obsolete): | 9223372036854775807 | ||||
| Description |
|
The 'ra_cur_pages' atomic, used to track currently used pages in readahead, is not initialized. This means it will occasionally contain some unexpected value rather than 0, which can break readahead. Initialize it to 0. |
| Comments |
| Comment by Gerrit Updater [ 24/Feb/23 ] |
|
"Patrick Farrell <pfarrell@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/50133 |
| Comment by Patrick Farrell [ 16/Mar/23 ] |
|
As Andreas pointed out, this memory is zeroed on load, so the idea of this bug is incorrect. |