]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_file: fix extra rele on fs in close 15152/head
authorGui Hecheng <guihecheng@cmss.chinamobile.com>
Tue, 16 May 2017 08:05:35 +0000 (16:05 +0800)
committerGui Hecheng <guihecheng@cmss.chinamobile.com>
Thu, 18 May 2017 10:27:06 +0000 (18:27 +0800)
We got exactly a refcnt=0 after rele in close,
no need to rele twice.

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
src/rgw/rgw_file.cc

index 3fe8ba055916fc03dc994cef99a583b601357ad0..fd0c21db28da0630032018db25670c0a4ae7a8e2 100644 (file)
@@ -1419,7 +1419,6 @@ int rgw_umount(struct rgw_fs *rgw_fs, uint32_t flags)
 {
   RGWLibFS *fs = static_cast<RGWLibFS*>(rgw_fs->fs_private);
   fs->close();
-  fs->rele();
   return 0;
 }