Date: Sun, 9 Nov 2014 21:08:53 +0000 (UTC) From: Tycho Nightingale <tychon@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r274330 - head/usr.sbin/bhyve Message-ID: <201411092108.sA9L8rAh007091@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tychon Date: Sun Nov 9 21:08:52 2014 New Revision: 274330 URL: https://svnweb.freebsd.org/changeset/base/274330 Log: To allow a request to be submitted from within the callback routine of a completing one increase the total by 1 but don't advertise it. Reviewed by: grehan Modified: head/usr.sbin/bhyve/block_if.c Modified: head/usr.sbin/bhyve/block_if.c ============================================================================== --- head/usr.sbin/bhyve/block_if.c Sun Nov 9 20:43:50 2014 (r274329) +++ head/usr.sbin/bhyve/block_if.c Sun Nov 9 21:08:52 2014 (r274330) @@ -54,7 +54,7 @@ __FBSDID("$FreeBSD$"); #define BLOCKIF_SIG 0xb109b109 -#define BLOCKIF_MAXREQ 32 +#define BLOCKIF_MAXREQ 33 enum blockop { BOP_READ, @@ -600,7 +600,7 @@ blockif_queuesz(struct blockif_ctxt *bc) { assert(bc->bc_magic == BLOCKIF_SIG); - return (BLOCKIF_MAXREQ); + return (BLOCKIF_MAXREQ - 1); } int
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411092108.sA9L8rAh007091>