Whamcloud - gitweb
LU-15800 ofd: take a read lock for fallocate 68/47268/4
authorAlex Zhuravlev <bzzz@whamcloud.com>
Tue, 10 May 2022 07:48:55 +0000 (10:48 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Sun, 29 May 2022 12:25:58 +0000 (12:25 +0000)
commit64e269c800533c4ce15235b21597038c29f0040a
tree0041d7bc7e3d4ac56a8fd3c1eb74a3324a1550b3
parentc524079f4f59a39b99467d9868ee4aafdcf033e9
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.

Fixes: cdaaa87f6b ("LU-14214 ofd: fix locking in ofd_object_fallocate()")
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I65986745865ee329c5257a7efca5e79403830608
lustre/ofd/ofd_objects.c