]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
FDCache: purge hoid on clear 2799/head
authorSamuel Just <sam.just@inktank.com>
Wed, 22 Oct 2014 19:43:55 +0000 (12:43 -0700)
committerSamuel Just <sam.just@inktank.com>
Wed, 22 Oct 2014 19:43:55 +0000 (12:43 -0700)
commit4128814da79a18454a3671d01386bf87e9aa0cc8
tree544c795eede7c0d6e5e7344c22b12bb718585468
parent3abbd4c3167440fae836a9bd2eeeeac63918a0f5
FDCache: purge hoid on clear

We no longer require that a lock on the FD be held for the duration of an
operation, only while accessing the actual index.  We cannot, therefore, assume
that a racing read during lfn_unlink (backfill or scrub) does not still have a
reference to the fd.  We want to remove the fd from the cache to prevent
subsequent operations from finding it while allowing such a racing read to
complete with its existing fd.

Fixes: #9480
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/os/FDCache.h