From nobody Tue Jan 9 09:42:34 2024 X-Original-To: current@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 4T8QvZ2m0qz56vtf for ; Tue, 9 Jan 2024 09:42:34 +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 4T8QvZ1kJQz4NcV for ; Tue, 9 Jan 2024 09:42:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704793354; 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=8rIfbo9KhmPuzU1Ly67pQK2Ps67q1epTLBDhNkeBxEA=; b=iyXlX7dE95R5Z36nl162ukJTLnrLy1kmGFgNwhN5LaS8N8ZyWfP17+htTFuAaaTGwrdM4D 5sm7rr8IZ9r1x4bSv22nyozQh0MNHy5UgANzDXgBVzk9P1ziL3VdIqjGHc/74P0DsCKweH SJgq6E/VoBMTfD/mMzxEY7v3H1S0wtOrpjQeIt4WEWa0K8vqMYIkn8/4zbS6A6E2al4eQd WqIQU8/c2H5vh9nKoKOe93M7W0gkMj+5yJGXO5SoYKttxcZR23xKv8xQCKEBfO0VAkPt8+ 1kSwXeZsWQCuhM0O1JzEk/mhjg+1ueUwP+1At70vpZ4zCGdxZeJik0GSgwZu9g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704793354; a=rsa-sha256; cv=none; b=meBvjhPjQ2Xb1FDVk8mzWZR6k7Dx84zvl5bqDSCFZLInY7YHzab5Ax5OWAjoqXuQbTeUJ0 9GRGoRdtj2M9jwIzWtlwLEsHd39rdSJqkcH8+yl/hIEx13PjIpCPhJwThUDpFKMATq585v CwlOb7IVIZi+GZlsjGnI6OI51ggmC7Y86wz7+ZbmSnUGeldjK65mBbwtzMNb62P0lJkUoB PfU0wcX5UfGcPFCXUf/IRoCQDkvCuBvEXdz7+6g/FQbFwFXmyoKMokl2vB1dA2mdSBlpNg 6qN7y+/Oc7bNZFB/c+/m/uDzNU/sBksGE1YaNRmqGrcgOoUyfqysFpShcuREgg== 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 4T8QvZ0pBNzlyl for ; Tue, 9 Jan 2024 09:42:34 +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 4099gYi9092221 for ; Tue, 9 Jan 2024 09:42:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4099gY48092220 for current@FreeBSD.org; Tue, 9 Jan 2024 09:42:34 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: current@FreeBSD.org Subject: [Bug 197921] scheduler: Allow non-migratable threads to bind to their current CPU Date: Tue, 09 Jan 2024 09:42:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: zlei@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D197921 Zhenlei Huang changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zlei@FreeBSD.org --- Comment #3 from Zhenlei Huang --- It seems we do not have usage that bind a thread to local CPU, otherwise `KASSERT(THREAD_CAN_MIGRATE(td), ("%p must be migratable", td))` will compl= ain (when kernel built with option INVARIANTS). (In reply to Ed Maste from comment #1) > but, what about just moving the KASSERT after the `if (PCPU_GET(cpuid) = =3D=3D cpu)` test? I think that is much simpler. --=20 You are receiving this mail because: You are on the CC list for the bug.=