From: Gui Hecheng Date: Tue, 16 May 2017 08:05:35 +0000 (+0800) Subject: rgw_file: fix extra rele on fs in close X-Git-Tag: v12.1.0~10^2~83^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F15152%2Fhead;p=ceph.git rgw_file: fix extra rele on fs in close We got exactly a refcnt=0 after rele in close, no need to rele twice. Signed-off-by: Gui Hecheng --- diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index 3fe8ba055916f..fd0c21db28da0 100644 --- a/src/rgw/rgw_file.cc +++ b/src/rgw/rgw_file.cc @@ -1419,7 +1419,6 @@ int rgw_umount(struct rgw_fs *rgw_fs, uint32_t flags) { RGWLibFS *fs = static_cast(rgw_fs->fs_private); fs->close(); - fs->rele(); return 0; }