]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Don't writeback when inside a readdir callback 37774/head
authorDaniel Gryniewicz <dang@redhat.com>
Fri, 23 Oct 2020 16:37:20 +0000 (12:37 -0400)
committerDaniel Gryniewicz <dang@redhat.com>
Fri, 23 Oct 2020 16:43:03 +0000 (12:43 -0400)
commit96ed1665701cb1d43c2ddbb54329f8beb93b53cf
treedef56b1ef75260e7045fcf5df993c13cb334e3c0
parent27871caa7f053fdc338077e0bbc1e51521761205
Don't writeback when inside a readdir callback

The code updates some attributes that may have changed between versions
when doing a lookup.  However, a lookup can be done from within a
readdir callback, which causes a deadlock during the writeback.  Extend
the flag indicating we're in a callback all the way down, so we can
conditionally avoid the write.

Fixes RHBZ#1845501

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
src/rgw/rgw_file.cc
src/rgw/rgw_file.h