1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Fix a bug which prevented more than two clients from sharing a resource.

This commit is contained in:
Doug Rabson 1999-03-29 08:30:17 +00:00
parent 67e7cb89d9
commit ecc6e7d5ef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=45106

View File

@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: subr_rman.c,v 1.3 1998/12/07 21:58:29 archie Exp $
* $Id: subr_rman.c,v 1.4 1999/01/02 11:34:55 bde Exp $
*/
/*
@ -359,7 +359,7 @@ rman_reserve_resource(struct rman *rm, u_long start, u_long end, u_long count,
LIST_INIT(s->r_sharehead);
LIST_INSERT_HEAD(s->r_sharehead, s,
r_sharelink);
s->r_flags = RF_FIRSTSHARE;
s->r_flags |= RF_FIRSTSHARE;
}
rv->r_sharehead = s->r_sharehead;
LIST_INSERT_HEAD(s->r_sharehead, rv, r_sharelink);