Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp49145lqt; Thu, 18 Apr 2024 08:09:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVyglwYec2nMYeP52Qhcu0oGENcP0roTt6TMPSa22wtv4k7+kQx31Q41Ssff5yy32sD36I4Mmbaanc+GNi1N5TY8K9d0rOPzmuhPjKgBA== X-Google-Smtp-Source: AGHT+IGSZDVm3HgmkeLdRoRNCWEpfoO0fr0dTq0yTL1NOw/GotwzNZuWtMbaawJnXJ95JNWtoYzH X-Received: by 2002:a17:902:ce8f:b0:1e4:5e14:9db2 with SMTP id f15-20020a170902ce8f00b001e45e149db2mr3986521plg.39.1713452962593; Thu, 18 Apr 2024 08:09:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713452962; cv=pass; d=google.com; s=arc-20160816; b=TS69T4SmL/lPjOAfnzz6GDn/recSKdm7Sxm5GNmHk/PRUq+uAakMWjo1q7UIvM025Q 4peqsXb0SgVrT1dZvW17BWjIdwBDUsEoxXAQ3biou4RfHe0rK1XsgOElltu1wgl00cTi VNLSXImPo7jX0a1KyOS2gxSr6RDvRVoXMAzlUEiJVgbEYS90BdI2rdV2tJPcqUp2EnEH LkpBjYjlNJx+hmtVxCfA4I462K2VUF9Na2FLkJSZ1XR+93+oSnmi7h8hqJUowvK1G8U1 znPrrC+snEkWUuUbsY9JG5OckwBYfNV7J61phzoNMilLS1kkA4wZ078gAH5hV9e31heq fn1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=p9O3FV94jh7vQc95L9k9nvefdNDVfaT9ibGX8CYdkE0=; fh=+t2/aXy/xkiHTHDUSVkEnsSxy1pK0sue/gBsD8oD2LA=; b=TiwH+W6sa+Cma11Sc1QxoYGmjV3c6SMRgpahgI4B4v8YF2WW4RPp3pZ4tQfKoeFV8h lKMF8Pl5b/dy+n6NrXoyb3alqcVtWo9yDEjNWYwmJ0oWO/KheP+xT/oVxUhjC5z7hH5A 69BDZc+Kn9FWCK4jdbDKSx1SoCUjNR6hygAlCZTeQGPQ3/TS5XVD84vpNRKNjCqSuwaU VEgrZAwf2N1JqVKrki6qePHwIK0L55N/vp1ypFws4+rfQwWiVBrmmb9foNpIqMQ1xc3O QPRf9q1HPs6f2JbBZpE4uU9rqjQ/0hz5p1HW/txbnLBDEqSBYpLzL2oNWyZAkOzDxyHG +GLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=B1LZJjoU; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-150366-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150366-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j5-20020a170903028500b001e43db0a261si1614576plr.546.2024.04.18.08.09.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 08:09:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150366-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=B1LZJjoU; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-150366-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150366-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 399B2282B28 for ; Thu, 18 Apr 2024 15:09:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CE1116C457; Thu, 18 Apr 2024 15:09:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="B1LZJjoU" Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (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 887F916ABFA for ; Thu, 18 Apr 2024 15:09:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713452952; cv=none; b=IiXfr4tA8gK8thNAYVYcRy+PI2oN0zkBlHPlQ7wrOpd12FcM4wzYaYwneqjaEZStoHrzJ2X/f6IJgC0MeoeUSoiXCN4tMiK90Zy+WFzsuDIJEpuwUIZ60ZELZ+BvvYImQJlIFEdokVhEvphSnkyTE8J1ynHRIgsK6c+LFo90wIU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713452952; c=relaxed/simple; bh=k+6r0GGg1vUggBFS1HFE+EGyXIm1V66bbTL8/78gpIg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tWO2oHltiCCvYjADwAT8PqunQeYV1/NOE+buCWiPELR/ImPXRryICqLb5hNkY3JE4eF8dN5z/nZJwP7IlcqtR5O7e1GEYPnYwlml490LD4bXxJ3k/20tRJgd7nBEr2xkWfYDWbhzS/dbFJW6uhoqg0FvekccWeQVKc22a+js2TQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=B1LZJjoU; arc=none smtp.client-ip=209.85.216.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-2ab48c1156dso51950a91.3 for ; Thu, 18 Apr 2024 08:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1713452950; x=1714057750; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=p9O3FV94jh7vQc95L9k9nvefdNDVfaT9ibGX8CYdkE0=; b=B1LZJjoUCtuOlGcn9U1cjNB8sFIjuVv1mQmVusLC7U5bSe2BDxPeb7PGK/33ad+bqU ko/ZJ8dY9HhSS6fdKjasdd4PV7gPyYyQgDlre+82dSCb/pmvMzXwQagxGYMz+Co+69wi ycdVvJKuCA3aw+qds9laOO3L3eEkCWoW7tdngejNkRT7gEqFxB0GuVo3ZLJ3lo8YqMgM 2jTDaScUD5Ca7toegrIE/OZ7gvt6wBA2oikW4pt+IU8Pv3EK2PEVjm7d3x7QKGmKcxWI iucju/+lE0j7ZW+3LaMz7tFKFpMSJ92Q5E+fehRyMVRNx4LADj2qVaDI6fHUvlFNqfSK Of5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713452950; x=1714057750; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=p9O3FV94jh7vQc95L9k9nvefdNDVfaT9ibGX8CYdkE0=; b=UPDTkp5Cy0jwFPO97krSEvv4oKrS3/VDl7oJAvF2gcDb4UX7e5o7ZlYvE77ZnpYxpQ yOTPWtCTPb/+Hy5dP3wkvsNEf06l30GFuujKRZefexnS618ktzktp69ulxSLKS1njp48 fIU04cxxQUQjjGcy6Gl/RSM9uew9jtUgJGnZ8Ubx9MDDybO5qXLNknzdt/VKS0dksHxP 8gxN83/jvfPQT9If7Fn8sm7y5ru9GQKUKTR5wkStCVmQUpwiu/ipQiyinTpn7RwqENgD OSudGerpO52Aci2nLg7WnBUdSISIs0luEv41gPeYVdyzw/DDPX7Sc8sBED4XedZUGQ92 BYcw== X-Forwarded-Encrypted: i=1; AJvYcCX1Tcm2UrTrmWIjGqgFbVV8scbrPULLT5rP1t2RoMMUQU/k3mjPQzPcVAr+xq9CDiRQkXynBLQkgIa8UzrPpsGoaa5Vj+Eoq0hHyxR4 X-Gm-Message-State: AOJu0Yz/u7QnwFT2nUCzWRM5iPVDCOQe7Z/jpz1HRmKyUh+Af9r0++5s Qlgk1G+aoxb/9b1NNQk8P/l83NqxeDFH81OUT3nURBBZpu/osW4apTn/gllM/Mg= X-Received: by 2002:a17:90a:7e0e:b0:2a3:be48:23f3 with SMTP id i14-20020a17090a7e0e00b002a3be4823f3mr2885933pjl.4.1713452949760; Thu, 18 Apr 2024 08:09:09 -0700 (PDT) Received: from [192.168.1.150] ([198.8.77.194]) by smtp.gmail.com with ESMTPSA id s22-20020a17090aa11600b002ab664e5e17sm1547775pjp.1.2024.04.18.08.09.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Apr 2024 08:09:09 -0700 (PDT) Message-ID: <362c3c63-6fd9-401c-9281-e2e0c7efc14a@kernel.dk> Date: Thu, 18 Apr 2024 09:09:07 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] completion: move blk_wait_io to kernel/sched/completion.c Content-Language: en-US To: Christoph Hellwig Cc: Mikulas Patocka , Peter Zijlstra , Mike Snitzer , Damien Le Moal , Ingo Molnar , Will Deacon , Waiman Long , Guangwu Zhang , dm-devel@lists.linux.dev, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <31b118f3-bc8d-b18b-c4b9-e57d74a73f@redhat.com> <20240417175538.GP40213@noisy.programming.kicks-ass.net> <546473fd-ca4b-3c64-349d-cc739088b748@redhat.com> <5f3d434b-e05c-445f-bee5-2bb1f11a5946@kernel.dk> From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/18/24 8:46 AM, Christoph Hellwig wrote: > On Thu, Apr 18, 2024 at 08:30:14AM -0600, Jens Axboe wrote: >> It certainly is a hack/work-around, but unless there are a lot more that >> should be using something like this, I don't think adding extra core >> complexity in terms of a special task state (or per-task flag, at least >> that would be easier) is really warranted. > > Basically any kernel thread doing on-demand work has the same problem. > It just has an easier workaround hack, as the kernel threads can simply > claim to do an interruptible sleep to not trigger the softlockup > warnings. A kernel thread can just use TASK_INTERRUPTIBLE, as it doesn't take signals anyway. But yeah, I guess you could view that as a work-around as well. Outside of that, mostly only a block problem, where our sleep is always uninterruptible. Unless there are similar hacks elsewhere in the kernel that I'm not aware of? -- Jens Axboe