aiori-CEPHFS: don't just unmount on close, release cmount too.

Signed-off-by: Mark Nelson <mnelson@redhat.com>
master
Mark Nelson 2020-05-28 20:18:05 -05:00
parent efc6d49832
commit edba70e99c
1 changed files with 9 additions and 2 deletions

View File

@ -173,7 +173,15 @@ static void CEPHFS_Init()
static void CEPHFS_Final()
{
/* shutdown */
ceph_shutdown(cmount);
int ret = ceph_unmount(cmount);
if (ret < 0) {
CEPHFS_ERR("ceph_umount failed", ret);
}
ret = ceph_release(cmount);
if (ret < 0) {
CEPHFS_ERR("ceph_release failed", ret);
}
cmount = NULL;
}
static void *CEPHFS_Create(char *testFileName, IOR_param_t * param)
@ -273,7 +281,6 @@ static void CEPHFS_Close(void *file, IOR_param_t * param)
CEPHFS_ERR("ceph_close failed", ret);
}
free(file);
return;
}