diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2016-09-08 16:57:30 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2016-09-08 16:57:30 +0000 |
commit | cf599a3913601565c88e19a9ec02178567a4cdc0 (patch) | |
tree | b1daf47767eeac48001e465ba0db61a22fef4ee4 | |
parent | 37728f2336ee1feeaa21b8c50ea7ba40ced5e5e7 (diff) |
move mfs_pri into tsleep so it's easy to see and it doesn't change
-rw-r--r-- | sys/ufs/mfs/mfs_vfsops.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/ufs/mfs/mfs_vfsops.c b/sys/ufs/mfs/mfs_vfsops.c index 789a44964de..73fa6448e9f 100644 --- a/sys/ufs/mfs/mfs_vfsops.c +++ b/sys/ufs/mfs/mfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfs_vfsops.c,v 1.51 2016/09/08 16:44:46 tedu Exp $ */ +/* $OpenBSD: mfs_vfsops.c,v 1.52 2016/09/08 16:57:29 tedu Exp $ */ /* $NetBSD: mfs_vfsops.c,v 1.10 1996/02/09 22:31:28 christos Exp $ */ /* @@ -157,8 +157,6 @@ mfs_mount(struct mount *mp, const char *path, void *data, return (0); } -int mfs_pri = PWAIT | PCATCH; /* XXX prob. temp */ - /* * Used to grab the process and keep it in the kernel to service * memory filesystem I/O requests. @@ -202,7 +200,7 @@ mfs_start(struct mount *mp, int flags, struct proc *p) sleepreturn = 0; continue; } - sleepreturn = tsleep((caddr_t)vp, mfs_pri, "mfsidl", 0); + sleepreturn = tsleep(vp, PWAIT | PCATCH, "mfsidl", 0); } return (0); } |