From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo2-f42.google.com (mail-oo2-f42.google.com [74.125.231.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 22157372B27 for ; Sat, 26 Sep 2026 16:04:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.231.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790438669; cv=none; b=Qjxfm4O7WHqEpdWm0c4ThYgzl9iHdR2yYA1yw1EFQ9tGrVgDLNCa1A4564ZHvu0TL0g51KL3cuTVz+/67k4HvIiW5WPBWtfpNANgh9/DbQuLsVlmfYuP423MQ8UNaJ4iCKsnOdrawxQvlU3aRbn9ZFXpehzp4m66V1CMWXncTPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790438669; c=relaxed/simple; bh=NWM4pJtaX/q1ZBVgVlo5UZ32wLfKql6vva2eEs2zGJ4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CNC9tri9fS9DDYImIAR83PR2J9t7SfHsdq0uK16eH2jrqEFEaamQGXv3BcjUHOzyID5BK6t7ATE6AI+vqQ2l49Y4SP328r/+oSgguT01SuEv2acZV1aYJ7qcPRKm6WUDB2RQzFkH0AROkHpPOc7FjjQ147l3kNkvHNUZdA8aS7w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VUgvEG8E; arc=none smtp.client-ip=74.125.231.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VUgvEG8E" Received: by mail-oo2-f42.google.com with SMTP id 006d021491bc7-6d797cfdd5fso191144eaf.2 for ; Sat, 26 Sep 2026 09:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790438666; x=1791043466; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=04CycRj95YLfmA7hA1DhHUf9OsDpKgTDD3cyHvnkUEc=; b=VUgvEG8E9ZgQsj/yLzKvn2Lu5Ac301B9rZDlQvQZwHCKWimZIgGqjr2I7E66RSzmEW lIANXQf8daSl2P85tS+SBh3X3p6XlQWxoo87ZSWti3UmLxx4B3h1WEfUM0byLTX4w3d5 chcyo7BEW4bIdTCZMwOyv3DVVOgLQfSGpJvsO4XWv+eqM7npS2XtZWtZgK4M2EpwMiND bwR+5FnG1LXnHs3PA7GIdko56JsAj0BOjrMF1B9yYp3f0MfRbBm9C9uElmTU6m9glHTj 4iwFQTgGuGKaLgU3Egsjk/49KTIlJf2TuQsadhpj66B37xsBp60xzflhW7yQZ0uoejft ypLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790438666; x=1791043466; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=04CycRj95YLfmA7hA1DhHUf9OsDpKgTDD3cyHvnkUEc=; b=DPYTpZai/BDQrWSDTZI7Leadlmq8qk5ZcIr/cBoOkiJWFRhi+rtPpTvx7LtoM1sKdn /taiCyrmRO6AjYQcQJMobBoRjKqvJzdVsaOg87I+oJjdOjSeiK9in+7GVTSLaGQqFsrZ d90u6SBBXWKt1ru+W4VmrXm5uPWxnDRvfvpc6pS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162 with SMTP id 006d021491bc7-6d43f2c6fd5mr9089210eaf.7.1790438665895; Sat, 26 Sep 2026 09:04:25 -0700 (PDT) Received: from fedora-laptop ([172.245.82.59]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-6d581dc58dasm6182919eaf.4.2026.09.26.09.04.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Sep 2026 09:04:25 -0700 (PDT) Date: Sat, 26 Sep 2026 11:04:14 -0500 From: Ming Lei To: Jens Axboe Cc: io-uring@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, tglx@kernel.org, mingo@redhat.com, peterz@infradead.org Subject: Re: [RFC PATCH 00/15] io_uring: thread identity handoff for blocking inline issue Message-ID: References: <20260911154148.644489-1-axboe@kernel.dk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260911154148.644489-1-axboe@kernel.dk> On Fri, Sep 11, 2026 at 09:40:50AM -0600, Jens Axboe wrote: > Hi, > ... > > This is obviously an RFC, in terms of what I'd love people to take a > closer look at: > > - The scheduler hook and the identity move itself, kernel/thread_handoff.c. > Is the set of refused states complete enough, and is moving > thread group leadership this way (the leader must stay first on > ->thread_head, like de_thread() keeps it) acceptable / kosher. > - The x86 and arm64 register state handling. x86 refuses AMX users, > and arm64 refuses SME. > - Whether anyone relies on a task's user identity staying on one > task_struct in ways not covered above in the series. This way may break ublk server given 'task_struct *' can be changed because the server issues blocking OP(fallocate, ...), then the `current` check in ublk_dispatch_req() can be hit. Also there is risk in 'task_struct *' keyed bpf task storage. task_work queuing could become tricky too. Thanks, Ming