From owner-svn-src-head@FreeBSD.ORG Wed May 20 18:58:07 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E73591065677; Wed, 20 May 2009 18:58:07 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D4E258FC08; Wed, 20 May 2009 18:58:07 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n4KIw7rI040620; Wed, 20 May 2009 18:58:07 GMT (envelope-from rmacklem@svn.freebsd.org) Received: (from rmacklem@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n4KIw7Fc040619; Wed, 20 May 2009 18:58:07 GMT (envelope-from rmacklem@svn.freebsd.org) Message-Id: <200905201858.n4KIw7Fc040619@svn.freebsd.org> From: Rick Macklem Date: Wed, 20 May 2009 18:58:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r192463 - head/sys/fs/nfsserver X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2009 18:58:08 -0000 Author: rmacklem Date: Wed May 20 18:58:07 2009 New Revision: 192463 URL: http://svn.freebsd.org/changeset/base/192463 Log: Although it should never happen, all the nfsv4 server can do when it runs out of clientids is reboot. I had replaced cpu_reboot() with printf(), since cpu_reboot() doesn't exist for sparc64. This change replaces the printf() with panic(), so the reboot would occur for this highly unlikely occurrence. Approved by: kib (mentor) Modified: head/sys/fs/nfsserver/nfs_nfsdstate.c Modified: head/sys/fs/nfsserver/nfs_nfsdstate.c ============================================================================== --- head/sys/fs/nfsserver/nfs_nfsdstate.c Wed May 20 18:45:49 2009 (r192462) +++ head/sys/fs/nfsserver/nfs_nfsdstate.c Wed May 20 18:58:07 2009 (r192463) @@ -3709,7 +3709,7 @@ nfsrv_nextclientindex(void) * In practice, we'll never get here, but the reboot is here, * just for fun. (client_index will not wrap around on any real server) */ - printf("you must reboot now\n"); + panic("nfsv4 server out of clientids"); return (0); /* Just to shut the compiler up */ }