]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: acquire inode snaplock in open 53185/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 18 Jul 2023 00:52:13 +0000 (20:52 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 28 Aug 2023 13:33:30 +0000 (09:33 -0400)
commit38d7ee36926e59e4d4e1eeec77d2af6cac731fad
tree88273a4ad906b4c39f31c9ac95b2c17f4744e32f
parent595355f450898939abedfa92883f9a78b18c37aa
mds: acquire inode snaplock in open

It doesn't make sense that

   open("file", O_CREAT|...)

will acquire a readlock on the file's snaplock when the file already
exists, but:

   open("file", ...)

will not.

Fixes: https://tracker.ceph.com/issues/62058
Fixes: c1d7f93d7bd06d773b8035359548c0c9216398e3
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit c04ab6f0868a7385e695c85486cf3e7bbdfa9ab5)
src/mds/Server.cc