Whamcloud - gitweb
EX-7601 tgt: round write lock to chunk
authorPatrick Farrell <pfarrell@whamcloud.com>
Thu, 2 Nov 2023 21:31:41 +0000 (17:31 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 29 Dec 2023 11:00:47 +0000 (11:00 +0000)
commit2287b7fb00caa30f5ffff482b657a8bc83c70f09
tree159d72ba2e58154eb3b167bdc8e48336615b1a7e
parentf8299fdf41442e007d531aee21f73146b6d1bd92
EX-7601 tgt: round write lock to chunk

For unaligned writes, we need to round the write 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: I2bdea620386ad229375647a0e2cc6180c9bd7aa6
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52961
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Artem Blagodarenko <ablagodarenko@ddn.com>
lustre/target/tgt_handler.c