]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
FileStore: Race condition during object delete is fixed 2509/head 2510/head
authorSomnath Roy <somnath.roy@sandisk.com>
Tue, 16 Sep 2014 00:23:51 +0000 (17:23 -0700)
committerSomnath Roy <somnath.roy@sandisk.com>
Tue, 16 Sep 2014 22:36:06 +0000 (15:36 -0700)
commit86a4bed6732b18ee3dcf729d7e5fc784b6680843
tree7510a6e457079544196d0137d8ce56fc545c1d11
parentfdbfece81c8d2c3013f9363c96dc3906c8c6c4d0
FileStore: Race condition during object delete is fixed

There was a race condition (hence OSD crash) between lfn_unlink
and lfn_open. The reason was FDCache lookup was called without
taking index lock from lfn_open. Lookup will increase reference
count and thus Clear will not be able to delete those FDs. FDs
will be leaked. The assert within FDCache clear was hitting
because of this.

Fixes: #9480
Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
src/os/FileStore.cc