From b3cd880417e0c0dfb05f7c61ef477cf3167df9b8 Mon Sep 17 00:00:00 2001 From: pooka Date: Thu, 7 Jan 2010 22:40:11 +0000 Subject: [PATCH] Set high bit on server->kernel requests to better differentiate between the direction of the request. --- lib/libpuffs/puffs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libpuffs/puffs.c b/lib/libpuffs/puffs.c index 5f0da40abe05..a9785f1bdfe3 100644 --- a/lib/libpuffs/puffs.c +++ b/lib/libpuffs/puffs.c @@ -1,4 +1,4 @@ -/* $NetBSD: puffs.c,v 1.101 2009/12/05 20:54:10 pooka Exp $ */ +/* $NetBSD: puffs.c,v 1.102 2010/01/07 22:40:11 pooka Exp $ */ /* * Copyright (c) 2005, 2006, 2007 Antti Kantee. All Rights Reserved. @@ -31,7 +31,7 @@ #include #if !defined(lint) -__RCSID("$NetBSD: puffs.c,v 1.101 2009/12/05 20:54:10 pooka Exp $"); +__RCSID("$NetBSD: puffs.c,v 1.102 2010/01/07 22:40:11 pooka Exp $"); #endif /* !lint */ #include @@ -154,7 +154,7 @@ puffs__nextreq(struct puffs_usermount *pu) uint64_t rv; PU_LOCK(); - rv = pu->pu_nextreq++; + rv = pu->pu_nextreq++ | 1ULL<<63; PU_UNLOCK(); return rv;