From nobody Sun Jun 05 22:32:20 2022 X-Original-To: gnome@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 67E771BEDEB4 for ; Sun, 5 Jun 2022 22:32:24 +0000 (UTC) (envelope-from bugzilla-noreply@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 4LGWZv6dmWz4Zwr for ; Sun, 5 Jun 2022 22:32:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 AA51D1A728 for ; Sun, 5 Jun 2022 22:32:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 255MWNF9083967 for ; Sun, 5 Jun 2022 22:32:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 255MWN8b083965 for gnome@FreeBSD.org; Sun, 5 Jun 2022 22:32:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [Bug 194727] uaudio device gets disconnected, and hangs usb until everything using /dev/mixer* is closed Date: Sun, 05 Jun 2022 22:32:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: theron.tarigo@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: hselasky@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: GNOME for FreeBSD -- porting and maintaining List-Archive: https://lists.freebsd.org/archives/freebsd-gnome List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-gnome@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654468344; 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: in-reply-to:in-reply-to:references:references; bh=OIRCn47uYul2+u7+g3VnGdIMrAQKBvLT6wzz8Xcv8W8=; b=wxs+nTJ7lWwosFi6AQzJWS3IoV9zpk/1+FUtUdm1q2hh9Ml7JlxKf/8/z1ixTdRDZphsOC v8teI9DCin+IMV5DnRnQYbFTpAqFVv4vKWbDQTaVpaFP6BngKqwHwaHdWFZsXxv08pgerc q6mVkTjt2Y4zriBB++gIn4yI0zqC2qgGuoBDpeQaM+G79y6fTzoe0cHWQ7TEMZZsY0OhMc p00VXr0UxhuempOrbZgfEuR3H9Sz78m8Rd3CdygZ7lASGIMr4VoBZ+iKQB756YRpOlVoHW BJRsd6d9uL5ViJ4Q3ONAbdZhAmw8l7YNcF3MmE335amDlrklfNwW1KUH1/FSGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654468344; a=rsa-sha256; cv=none; b=UwMUk1oZ5qGDRcoN03qtTHuwnFbZ5CosFpm1fTWcW9/BqsKaua+ss0R9K9ZN/NAsppOfNw rF+ddL5m7X+htD5JCXv9wcq4yCGW+cHJ+0JOpOwOcr1ihMWKJbUFHpkcGXkjhBB87HzxTO FTPYJijoo47T+TesCwwo5OHSBI5ILOMbmdKKnVrPkI4ftd119eQkMzkD3Vdze7fhOVncEk HzJjQuIkgJTkPvqA+ttCB3751oEvZF1otnfLaXQ2Tsusm3rNVwr4MhCqTQAYAAh/iY1qjc JO6uLkEmkr3+96n6Wh+bl+0rP66GTLo1S9IzHBjr0b1yA5Sp6pUPU41AvfA5ow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D194727 --- Comment #79 from Theron Tarigo --- When an application has a memory leak, that kernel-provided memory resource= is tied up until the application cleans up or dies, but memory allocation continues to function. When an application keeps a file open on a filesystem which no longer exists (physically removed/force unmounted), kernel resources for descriptor management are tied up until the application cleans up or dies, but filesys= tem mounting continues to function. When an application keeps a block device open after the device is destroyed, kernel resource are tied up until the application cleans up or dies, but bl= ock device attachment continues to function. It seems clear that USB audio is the odd one out here, compared to these th= ree existing features of the kernel's resource management. How is block device detachment (despite inability to immediately destroy the file descriptor) implemented? Trying to find this in the sources is where I last got stuck when trying to solve the USB audio problem myself. --=20 You are receiving this mail because: You are on the CC list for the bug.=