]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: reference counting 'struct Fh' 5164/head
authorYan, Zheng <zyan@redhat.com>
Wed, 8 Jul 2015 02:11:43 +0000 (10:11 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 8 Jul 2015 02:12:47 +0000 (10:12 +0800)
commit34b939a81d38173b882c429b28dedce778504ba8
tree4bf09e33e58d9cc225dd4a7483c35d00f73b77a2
parent07a2a131e1c962e409094c01ac3ab40b91633d7f
client: reference counting 'struct Fh'

The async readahead finisher needs to reference 'struct Fh'. But
it's possible user closes FD and free the corresponding 'struct Fh'
before async readahead finishes.

Fixes: #12088
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/client/Client.cc
src/client/Client.h
src/client/Fh.h