avfs: fix for root file system not being unmounted

Also no longer have avfs crash whenever a file system server crashes.
This commit is contained in:
David van Moolenbroek 2012-01-04 14:10:10 +01:00
parent c21cdd3154
commit c25e2eb0cf
3 changed files with 0 additions and 17 deletions

View file

@ -350,9 +350,6 @@ PUBLIC void pm_reboot()
rfp = &fproc[i];
if (rfp->fp_endpoint == NONE) continue;
/* Let FSes exit themselves */
if (find_vmnt(rfp->fp_endpoint) != NULL) continue;
/* Don't just free the proc right away, but let it finish what it was
* doing first */
lock_proc(rfp, 0);
@ -460,7 +457,6 @@ PRIVATE void free_proc(struct fproc *exiter, int flags)
*/
unsuspend_by_endpt(exiter->fp_endpoint);
dmap_unmap_by_endpt(exiter->fp_endpoint);
vmnt_unmap_by_endpt(exiter->fp_endpoint);
worker_stop_by_endpt(exiter->fp_endpoint);
/* Release root and working directories. */

View file

@ -334,7 +334,6 @@ _PROTOTYPE( struct vmnt *get_locked_vmnt, (struct fproc *rfp) );
_PROTOTYPE( void init_vmnts, (void) );
_PROTOTYPE( int lock_vmnt, (struct vmnt *vp, tll_access_t locktype) );
_PROTOTYPE( void unlock_vmnt, (struct vmnt *vp) );
_PROTOTYPE( void vmnt_unmap_by_endpt, (endpoint_t proc_e) );
/* vnode.c */
_PROTOTYPE( void check_vnode_locks, (void) );

View file

@ -180,15 +180,3 @@ PUBLIC void unlock_vmnt(struct vmnt *vmp)
#endif
}
/*===========================================================================*
* vmnt_unmap_by_endpoint *
*===========================================================================*/
PUBLIC void vmnt_unmap_by_endpt(endpoint_t proc_e)
{
struct vmnt *vmp;
if ((vmp = find_vmnt(proc_e)) != NULL)
clear_vmnt(vmp);
}