From nobody Wed May 04 22:33:24 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B8B141AAAEA8; Wed, 4 May 2022 22:33:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kts6r4sBhz4gC2; Wed, 4 May 2022 22:33:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651703604; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bkSZVzjwS38wYwYwcc1TeXucWnCJgkp5Lyi4p2j8KLY=; b=xnZt4zyj/W5OZGF8a1a+JdaQF4vU+lSUZ6njrTNcgH5njFfCaKky4sKEx5CsCycyKJySQm h/xuVKmkAemL/MoRhiC+AEaLFAbzJKno7d60aZr5qxCU82xcZElU03P9WJNoECdBwW0HQI OPLB4EaW8k7bb9G/VfRZFs03zF6ASgCgQ/jgqDNAA36UA1d+D0FROxwmcymdkVzZXd/qTy ZDZRiw/UqYsB0qimXGyHN1bYUNcvGEC/+XtEOLbqpQFFjAPBNyWRM8SwCIYflI6IV1tzWl sa/hgMxAfvPbJ920USyhMRdT0L4miQcKXA3LdAxPxbO8i/AZDkSWxlX1S0LNHg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 865BA1B5CD; Wed, 4 May 2022 22:33:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 244MXOOJ015067; Wed, 4 May 2022 22:33:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 244MXO8r015066; Wed, 4 May 2022 22:33:24 GMT (envelope-from git) Date: Wed, 4 May 2022 22:33:24 GMT Message-Id: <202205042233.244MXO8r015066@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 5ba023517911 - stable/13 - init_unrhdr(): make it usable by initializing everything List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 5ba0235179112641fe094d87e1169933abd6a049 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651703604; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bkSZVzjwS38wYwYwcc1TeXucWnCJgkp5Lyi4p2j8KLY=; b=r3aFX6FjFrqpyVHjFWkPn5jPrhqC7UoXx2tCVLBNM0xaMEacOfMXKTMkyVRbDksdj6MxJm umuvO8EZjtkWhAWyxgp1BxLZRPA4e3VjbNOfjGPmJlR7SaOPefBWI+mmQz7t6I08Q07GQN PhzVckJDAR4mogc85CbxO5XqRkOkxE88OMmwK38AjZp2zpGTPkfBSi+prnxl8cRr7VkEyL wpNr9J4C5yPWXFs2YwXmt123ZnXE+cXU+sdyD5+zqZJ8DLiykVGZcOyk0cTsicDNeTe83x vBvVT9DAhBb2KszWB3tATzoZGgSHkcu+puDaAMlm+UlI6uOuU9T+ovnK0FEITA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651703604; a=rsa-sha256; cv=none; b=Y+lXdXJknLT9H5oM8ivOAo0rlESAsHC2M9MpLYIQJI95LRN9f4PyqPqpXdm2aIJUItAWKA 7Knrg9aBv986o8G37aLSMHConSJVmG2AN4reCjmOGT35isFBBWssn6fwXzmFAMwJpv55cG ekl6FANOeH0YCe9KWaS6sTmewUIZMHe159zUjxqd/vxqIAfuY3oHqpCnbgCHWB4DHoBoIU UCDtIY2GZnIKUa6q4K/0zEVYQ7u2iYNXkRY311taPGfDTiM4giKjmIQAwhxTVwLGUNeFFY yZ7AV93/3FDq77FiOOMSrmPpzqmQoCpcH8rUq3nV7ocuRbZPZQ0eA/Zt28KeAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=5ba0235179112641fe094d87e1169933abd6a049 commit 5ba0235179112641fe094d87e1169933abd6a049 Author: Konstantin Belousov AuthorDate: 2022-04-20 21:58:22 +0000 Commit: Konstantin Belousov CommitDate: 2022-05-04 22:33:05 +0000 init_unrhdr(): make it usable by initializing everything (cherry picked from commit c4be460e84b48f2c76e27768ee8132a1d639ebc2) --- sys/kern/subr_unit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/subr_unit.c b/sys/kern/subr_unit.c index 7b4e22e1f27a..9ca67bcfe7a2 100644 --- a/sys/kern/subr_unit.c +++ b/sys/kern/subr_unit.c @@ -347,6 +347,8 @@ init_unrhdr(struct unrhdr *uh, int low, int high, struct mtx *mutex) uh->high = high; uh->first = 0; uh->last = 1 + (high - low); + uh->busy = 0; + uh->alloc = 0; check_unrhdr(uh, __LINE__); }