[LU-17281] Use correct end offset when locking for ladivse willread Created: 10/Nov/23 Updated: 10/Nov/23 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Li Xi | Assignee: | Li Xi |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Severity: | 3 | ||||
| Rank (Obsolete): | 9223372036854775807 | ||||
| Description |
|
In ofd_ladvise_hdl(), tgt_extent_lock() shouldn't use end -1 as the end of the range. If end is EOF, which is true when willread has no range argument, ofd_ladvise_hdl() will mistakenly lock until EOF - 1 |
| Comments |
| Comment by Gerrit Updater [ 10/Nov/23 ] |
|
"Li Xi <lixi@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53080 |