From nobody Wed Jan 03 00:06:54 2024 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 4T4VQ71JNwz56Bq8; Wed, 3 Jan 2024 00:06:55 +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 4T4VQ70n7cz3ZNP; Wed, 3 Jan 2024 00:06:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704240415; 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=moY9WeWYVT5mz9pXrplS7fyWpxbLbbVOQeBQ4+69PNQ=; b=L8Ritkzwaf7TdnhUzvHn0oB1Ubfs1ae6U3CxhSVYnIWpsZvHZdtfrKsZ7BOyo/MX0pZDp2 0gJvtmuK7ZFBN/kVBHlAokLbtdROzlPPgmQaeU8kSl1Cww2ZR7E3osctK+ye4Mai5AkAdn hKGZTQfcLUDG0wVrwwe+zLAZCoe9klcdGAHkktCflWKYUkJbyOBrx/D8SEPH33w9GP404i lqljI2iiwcagZ/yRRDYAIFKQCuXBEDWhyEEV74ULXktoS3xHCUZZSFSoMJ/MvEIEokzqqg CRaZ0GrOMgcl7EPpfncnsTW5Y1J5+UFyb1W5fDZnxFdQzSezpwoyhPc/N74BXA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704240415; a=rsa-sha256; cv=none; b=RHX8tedmOwwgQirlwFP2oKLXk6C2Hb/wWNdk/7weYr5EQT/ev8Dr76yrtAX5dAmkRzepov +XAU4/OnS0LOhY+UuJvCOy42v8PPjnZcDsQ3odTubLPNqjIs/xqlHD11altwXziMUAp2R4 z2S+08F+8NxFxnVH31pKHLx2FGLPbc4Nk1zchKaTKTws0HNbp8g6SWwVLpmaFNPNNsyK6k 4hzP9ks7czBuRyZ3i/O/B5Hgeg4z1W7/qoRwS/zTgijLLudv0n5nQ3uV9o8vIgS42g3J2t Av9GtjUaCKj4ekX+I2mTeE5E1zXg6O6jlUST2DCqukzgYwP+9F71xNXCFjihMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704240415; 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=moY9WeWYVT5mz9pXrplS7fyWpxbLbbVOQeBQ4+69PNQ=; b=Kla6c9LAPlajW/Ds7lCYCyQDlfuGuLFouru4V+U3PQyNO6yxvCE6tpBgeNGCVyMLuy2xW4 QJfoG5NW7CLNI/DOQARlhRmAqtGlLTrI3j5ikN/tWioGHMFbpwXVfs1bJVFxv/CF0gq1IW t2+IC7UTZbNHU92sc2lypvBs/5PTUslusyija3NLvUr6nywEWcKjtSrFyCIEcqPEXWeU58 lWgR9fOOC4/bwGQA4Dy0zpwlotHLglSecnnzsM2MTWETBHQSa/0vb/PkvX3zFbbDt2MVAK kfPIeo+VK3iksXOc89F23Y8l6vZiirJbzdk3b4f6I8J/q71ENvKR4lWNGdD5jw== 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 4T4VQ66xr0z1Lws; Wed, 3 Jan 2024 00:06:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40306sfq057189; Wed, 3 Jan 2024 00:06:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40306sNc057187; Wed, 3 Jan 2024 00:06:54 GMT (envelope-from git) Date: Wed, 3 Jan 2024 00:06:54 GMT Message-Id: <202401030006.40306sNc057187@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Navdeep Parhar Subject: git: 8b144c015c9c - main - cxgbe(4): Destroy the tick mutex during VI detach. 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: np X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8b144c015c9cce0bc99a7fbdc43f22f51a946d2c Auto-Submitted: auto-generated The branch main has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=8b144c015c9cce0bc99a7fbdc43f22f51a946d2c commit 8b144c015c9cce0bc99a7fbdc43f22f51a946d2c Author: Navdeep Parhar AuthorDate: 2023-12-27 21:00:29 +0000 Commit: Navdeep Parhar CommitDate: 2024-01-02 22:08:00 +0000 cxgbe(4): Destroy the tick mutex during VI detach. This avoids a mutex reinitialization when the VI is detached and reattached. Fixes: 516fe911a6b7 cxgbe(4): Always use the per-VI callout to read interface stats. MFC after: 1 week Sponsored by: Chelsio Communications --- sys/dev/cxgbe/t4_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index a32cd9a3f2df..570208e2c562 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -2733,6 +2733,7 @@ cxgbe_vi_detach(struct vi_info *vi) #endif cxgbe_uninit_synchronized(vi); callout_drain(&vi->tick); + mtx_destroy(&vi->tick_mtx); sysctl_ctx_free(&vi->ctx); vi_full_uninit(vi);