Whamcloud - gitweb
LU-15800 ofd: take a read lock for fallocate 02/51702/2
authorAlex Zhuravlev <bzzz@whamcloud.com>
Tue, 10 May 2022 07:48:55 +0000 (10:48 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 2 Aug 2023 06:22:04 +0000 (06:22 +0000)
commit8299b3fd77ebcc372b5d929eaa08231fc703c431
tree9a4816c307b332f71540ac8618d7cdc2a8f5cc1f
parent66d9916dc947064b598f52476fb6482c0bbaff10
LU-15800 ofd: take a read lock for fallocate

there is no need to take an write (exclusive) object's
lock for fallocate - we just need to serialize fallocate
vs destroy, all internal structures should be protected
by OSD and disk filesystem like the write path does.

Lustre-change: https://review.whamcloud.com/47268
Lustre-commit: 5fae80066162ea637c8649f6439fc14e1d9a7cf8

Fixes: cdaaa87f6b ("LU-14214 ofd: fix locking in ofd_object_fallocate()")
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I65986745865ee329c5257a7efca5e79403830608
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51702
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ofd/ofd_objects.c