version 1.71, 2008/05/06 18:43:44 |
version 1.71.6.1, 2008/10/19 22:17:18 |
Line 1018 puffs_msgif_close(void *this) |
|
Line 1018 puffs_msgif_close(void *this) |
|
} |
} |
|
|
/* Won't access pmp from here anymore */ |
/* Won't access pmp from here anymore */ |
|
atomic_inc_uint((unsigned int*)&mp->mnt_refcnt); |
puffs_mp_release(pmp); |
puffs_mp_release(pmp); |
mutex_exit(&pmp->pmp_lock); |
mutex_exit(&pmp->pmp_lock); |
|
|
/* |
/* Detach from VFS. */ |
* Detach from VFS. First do necessary XXX-dance (from |
|
* sys_unmount() & other callers of dounmount() |
|
* |
|
* XXX2: take a reference to the mountpoint before starting to |
|
* wait for syncer_mutex. Otherwise the mointpoint can be |
|
* wiped out while we wait. XXX Should be done earlier |
|
*/ |
|
atomic_inc_uint((unsigned int*)&mp->mnt_refcnt); |
|
(void)dounmount(mp, MNT_FORCE, curlwp); |
(void)dounmount(mp, MNT_FORCE, curlwp); |
|
vfs_destroy(mp); |
|
|
return 0; |
return 0; |
} |
} |