From owner-svn-src-head@FreeBSD.ORG Tue Dec 2 03:58:10 2008 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 82198106564A; Tue, 2 Dec 2008 03:58:10 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7C1428FC14; Tue, 2 Dec 2008 03:58:10 +0000 (UTC) (envelope-from kmacy@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 mB23wAVA047723; Tue, 2 Dec 2008 03:58:10 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mB23wAtL047722; Tue, 2 Dec 2008 03:58:10 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <200812020358.mB23wAtL047722@svn.freebsd.org> From: Kip Macy Date: Tue, 2 Dec 2008 03:58:10 +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: r185543 - head/sys/sys 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: Tue, 02 Dec 2008 03:58:10 -0000 Author: kmacy Date: Tue Dec 2 03:58:10 2008 New Revision: 185543 URL: http://svn.freebsd.org/changeset/base/185543 Log: return ENOBUFS when ring is full Modified: head/sys/sys/buf_ring.h Modified: head/sys/sys/buf_ring.h ============================================================================== --- head/sys/sys/buf_ring.h Tue Dec 2 03:39:34 2008 (r185542) +++ head/sys/sys/buf_ring.h Tue Dec 2 03:58:10 2008 (r185543) @@ -92,7 +92,7 @@ buf_ring_enqueue(struct buf_ring *br, vo if (prod_next == cons_tail) { critical_exit(); - return (ENOSPC); + return (ENOBUFS); } success = atomic_cmpset_int(&br->br_prod_head, prod_head,