Whamcloud - gitweb
EX-7601 ofd: round read lock to chunk
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 27 Oct 2023 18:42:41 +0000 (14:42 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 30 Nov 2023 17:15:51 +0000 (17:15 +0000)
commit83de606460b14b1ada27ded1f59956ffffe7d0b0
tree43cfefd5ea2caeb36c8c91acce9db7054c035038
parent13d38690ca393216c5a24482e1ef6c13830805b5
EX-7601 ofd: round read lock to chunk

For unaligned reads, we need to round the read locking to
cover the any leading or trailing chunks.  We do this by
creating a local 'remote niobuf' to describe the rounded
range and doing the locking against that niobuf.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I8818522c188aca3c5c5eb564da2a8ba8aef18a4b
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52864
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Artem Blagodarenko <ablagodarenko@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/target/tgt_handler.c