]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: reference counting 'struct Fh' 5221/head 5222/head
authorYan, Zheng <zyan@redhat.com>
Wed, 8 Jul 2015 02:11:43 +0000 (10:11 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 14 Jul 2015 06:21:28 +0000 (14:21 +0800)
commit3c8cdeacf46ae4031189d2ef6948aa3b6ab4ae43
tree921ee10c05e9bdd8736eafd6d08a6a2327058983
parent9a79e8e7da5f34f1adaf6137e01bcd42766ae677
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>
(cherry picked from commit 34b939a81d38173b882c429b28dedce778504ba8)
src/client/Client.cc
src/client/Client.h
src/client/Fh.h