Rename PUFFS_SOPREQ_EXIT to PUFFS_SOPREQSYS_EXIT to better signal

it comes from within the kernel instead of as a direct result of
a user request.

no functional change
This commit is contained in:
pooka 2010-01-07 23:02:34 +00:00
parent 8ed2ec74c7
commit 283c2ca905
3 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: puffs_msgif.c,v 1.78 2010/01/07 22:59:27 pooka Exp $ */
/* $NetBSD: puffs_msgif.c,v 1.79 2010/01/07 23:02:34 pooka Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 Antti Kantee. All Rights Reserved.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: puffs_msgif.c,v 1.78 2010/01/07 22:59:27 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: puffs_msgif.c,v 1.79 2010/01/07 23:02:34 pooka Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@ -928,7 +928,7 @@ puffs_sop_thread(void *arg)
mutex_exit(&pmp->pmp_sopmtx);
switch (psopr->psopr_sopreq) {
case PUFFS_SOPREQ_EXIT:
case PUFFS_SOPREQSYS_EXIT:
keeprunning = false;
break;
case PUFFS_SOPREQ_FLUSH:

View File

@ -1,4 +1,4 @@
/* $NetBSD: puffs_sys.h,v 1.74 2010/01/07 22:45:31 pooka Exp $ */
/* $NetBSD: puffs_sys.h,v 1.75 2010/01/07 23:02:34 pooka Exp $ */
/*
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
@ -99,7 +99,7 @@ struct puffs_newcookie {
};
enum puffs_sopreqtype {
PUFFS_SOPREQ_EXIT,
PUFFS_SOPREQSYS_EXIT,
PUFFS_SOPREQ_FLUSH,
PUFFS_SOPREQ_UNMOUNT,
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: puffs_vfsops.c,v 1.84 2009/12/07 20:57:55 pooka Exp $ */
/* $NetBSD: puffs_vfsops.c,v 1.85 2010/01/07 23:02:34 pooka Exp $ */
/*
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.84 2009/12/07 20:57:55 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.85 2010/01/07 23:02:34 pooka Exp $");
#include <sys/param.h>
#include <sys/mount.h>
@ -370,7 +370,7 @@ puffs_vfsop_unmount(struct mount *mp, int mntflags)
* it would be wanting to lock.
*/
psopr = kmem_alloc(sizeof(*psopr), KM_SLEEP);
psopr->psopr_sopreq = PUFFS_SOPREQ_EXIT;
psopr->psopr_sopreq = PUFFS_SOPREQSYS_EXIT;
mutex_enter(&pmp->pmp_sopmtx);
TAILQ_INSERT_TAIL(&pmp->pmp_sopreqs, psopr, psopr_entries);
cv_signal(&pmp->pmp_sopcv);