From nobody Wed Apr 27 23:27:46 2022 X-Original-To: dev-commits-src-main@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 5C3751AA8DD4; Wed, 27 Apr 2022 23:27:46 +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 4KpZfp239Lz4YBc; Wed, 27 Apr 2022 23:27:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651102066; 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=en+uAtJR9hWA9oAqHKwNueFs57Zuek6bvVmN9X8OXkQ=; b=pjEQnmvbkrgIFxP/1iYT2oQ1lD8LjZ09A+ihlQgfSZQ/DewkgQvpg3xb0jgkZoSFPfE/7y /7ernVvitm36E6FDbqAdk4UYiUGYVS9egGf9RGco8gc2waBXA8SrQYTs9/kdq2A2Hy9+DQ evlQFThSOTWBZpyRjakgbRhN97f1Vn/j+J97mTMdSM6AJ+iRgBzsd7D1ePbsPsDT9Uj45y BtMxDFgzuk0koNowv/dCtG1nX5m5hvrhN+btJgvSbDtHfYgaNv2BY6buiUF1GvDddk9n+H nhflIExcjnbB6+T+GX2iPFSzzbtRnmW5bR0AtwJiUFzGSTkjOKBs0vNSHQmujA== 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 23E3A5880; Wed, 27 Apr 2022 23:27:46 +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 23RNRkkK071760; Wed, 27 Apr 2022 23:27:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23RNRkWF071759; Wed, 27 Apr 2022 23:27:46 GMT (envelope-from git) Date: Wed, 27 Apr 2022 23:27:46 GMT Message-Id: <202204272327.23RNRkWF071759@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: c4be460e84b4 - main - init_unrhdr(): make it usable by initializing everything List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: c4be460e84b48f2c76e27768ee8132a1d639ebc2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651102066; 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=en+uAtJR9hWA9oAqHKwNueFs57Zuek6bvVmN9X8OXkQ=; b=ncfSVPJh/vUGuCnOlUlaC5VBVnkHLDXQ6GoNK6WWAYsC8wrlk1IaW955MKkV3BP6Zzksso H4m+PreuQ0fwHq7J1dqPPnl2zQqVOUf+V4w/udN3bpp36wvlC8+dlBAXkrRBbZajz6kEnw FlBPI08tQ3GUGGvxIy+KSxYyJJ/4OIuvVW3+bTHLSBzioc/Q7TOHijD+iONO17WswRi3rY sanCX1jhqDjCOZymoCyQDxM+syelUIFcOHSiRWiVV7I5C3VFOC3xGEaLea5nWuksAlDohG ke2ENdJlek0yeI6hPMRKHEqa/wvAmmgM3K/2hB2g/qnXVnnq1Y92CvdANPfLCA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651102066; a=rsa-sha256; cv=none; b=MszktA0BeOUiD1UtWyRUyRLTVH7eT3M9ulu0G0bt8Ab8X+SbpB0AEgn3NWi/QAgeXX/JKN PV39USzRCoFt1yhAtlTKzMkOP/FSaLpdbg2+n2lJAbxW7pRpRJTjaaJRmZV6PBqPijsDJk 2YEayHJ2cyylZfdDc3Rj1LfiDYLdVb22Q/zGbwbHPe94i1kenEBy7CMYjQLfRbWhkZxxbm zese/wjlFA1gCics482+VOGFWKN3FGktMtFe8N1Vh8NBq9+5uHYoEVKimLPM4B3guGyqwu MPwCycBtwW6xU161iBkuzFLSNbU/3GwPwJdfVCwDs4zBOo4rSNYSRdzwgGv7Tw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=c4be460e84b48f2c76e27768ee8132a1d639ebc2 commit c4be460e84b48f2c76e27768ee8132a1d639ebc2 Author: Konstantin Belousov AuthorDate: 2022-04-20 21:58:22 +0000 Commit: Konstantin Belousov CommitDate: 2022-04-27 23:27:34 +0000 init_unrhdr(): make it usable by initializing everything Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D35014 --- 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__); }