[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:
Related
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
Subject: LU-17281 ofd: use correct lock end for ladvise
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 77122f3fa0950a2267333ba0c0b52f0fc43ad8b8

Generated at Sat Feb 10 03:34:08 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.