Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp181429pxt; Wed, 4 Aug 2021 08:35:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/GzYah5ZLzdbE46Dl0Brxhf/VGiC18H/Ouu4xDaKfBbpfBNrwmzpkfKGfyJ8av4pGf748 X-Received: by 2002:a05:6402:2283:: with SMTP id cw3mr373484edb.87.1628091324703; Wed, 04 Aug 2021 08:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628091324; cv=none; d=google.com; s=arc-20160816; b=o0h9LGFkLhSEVemjlVfYbLxZaZeadTsDlXpAK748qe2mhVwEEi+VEC3W1x+N59quF8 sC6V1mYejqBowu5Qu0K8Jtt7bWAItUY6V7ScaqFGxEG+CwjdGWtzCFN57IppnrH3Y67r mm7mSLylvx7oLYsE2GUuGddHNHfLDQCm+gCt8RmK+j1t0wt9Pvo6l0F1hB3BPsgB3zUy 8j007TOhmW0emFsZvetgyFE/5oM9WM6DRq4ZWK9+iuErN63xsSlhVE3u56O6LOafhT5Z hZCeUTlCJwp2kD/G93HuI7OPGRl36SfEi1efBbXZ4jQwvh5rn5PWxXKAdMQlpGsCW6iS +OMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=UITlFQfMn5a0ECmudpd6OTfbQkrY3q2ViFmsUd3y0O4=; b=vmo4pTulO64ybLot86hd0PSllsPslIrB+TlF3zpbE3VFK8XcQBwzspxRUxVCZ6BRIh KtPiUfWLYTi6Hm7eDXPfeBvExyVvPO9wBlLHcDpGDmuvCNbH0XezMTwwZGfAsG5MvjHA UJHiIM4nEDtm+S4VYy1THawUtQb7wRkc/bmh6WO5OiqVTp08rOHx9fZ+uWHlwgVfaJ1f Jrim9Zr4hPqrkExBKVQulJoVbnll0u0SXIiBv1TN6Xgx+8pDNdBRloAt6krYaAeL4B2a 469BoOaiF/kX7ykvFKug1uPNgKx8qQuRsrtjXcjRxGdb3BQGVR4c3RdQJIzwyYbcmIo0 qF7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=S2FFqwPN; dkim=neutral (no key) header.i=@linutronix.de header.b=6FNL0w5I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si2499493edv.608.2021.08.04.08.35.00; Wed, 04 Aug 2021 08:35:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=S2FFqwPN; dkim=neutral (no key) header.i=@linutronix.de header.b=6FNL0w5I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239091AbhHDPdZ (ORCPT + 99 others); Wed, 4 Aug 2021 11:33:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239058AbhHDPdY (ORCPT ); Wed, 4 Aug 2021 11:33:24 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B924C0613D5; Wed, 4 Aug 2021 08:33:12 -0700 (PDT) Date: Wed, 4 Aug 2021 17:33:08 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1628091189; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UITlFQfMn5a0ECmudpd6OTfbQkrY3q2ViFmsUd3y0O4=; b=S2FFqwPNBno1O6pWE5QfyQ3X3ppQfvNrqSCCFH2VX42eeZBvQ/QzRF85D0MDEVtcuf1Nyk yJvCOfQsYsO+2xwCe8WrUsjG2LewHgOKUks4mhzid5kTEUFM56GTZgpWKcEyz5wMtkEFVh 7C/326YYoNX65TopjIjQA0ijoqNH8UyCbCYwLoYJps2/0cJQr5PZMlRVjWVNZz2w35b5pc IgssKC74H+0BCfqkalCQuAozbBunA/asUsXdGCOxmMXhHlQsfeKp+6YEfN4lOu1ycR5bMW wYy2a/NvjfOGOGXQrn5KAe1g5SiGODJkKndWhDfSwbZy2sSpywFtsR+0+BZogw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1628091189; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UITlFQfMn5a0ECmudpd6OTfbQkrY3q2ViFmsUd3y0O4=; b=6FNL0w5IQx/o71Yw07KRIwB0qY27ffUQoONfH/lx5Kfl23fqgpa2RpeMx61Bv8zsfjx6AW xR+zMUCSSHKL2/Cg== From: Sebastian Andrzej Siewior To: Jens Axboe Cc: Peter Zijlstra , Daniel Wagner , Thomas Gleixner , LKML , linux-rt-users@vger.kernel.org, Steven Rostedt Subject: Re: [ANNOUNCE] v5.14-rc4-rt4 Message-ID: <20210804153308.oasahcxjmcw7vivo@linutronix.de> References: <20210802162750.santic4y6lzcet5c@linutronix.de> <20210804082418.fbibprcwtzyt5qax@beryllium.lan> <20210804104340.fhdjwn3hruymu3ml@linutronix.de> <20210804104803.4nwxi74sa2vwiujd@linutronix.de> <20210804110057.chsvt7l5xpw7bo5r@linutronix.de> <20210804131731.GG8057@worktop.programming.kicks-ass.net> <4f549344-1040-c677-6a6a-53e243c5f364@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-08-04 08:23:55 [-0600], Jens Axboe wrote: > Totally untested, but I think the principle is sound. I'll run it through > some testing. This is needed: diff --git a/fs/io-wq.c b/fs/io-wq.c index 1192ee2abd982..77ec6896edaa5 100644 --- a/fs/io-wq.c +++ b/fs/io-wq.c @@ -428,9 +428,9 @@ static struct io_wq_work *io_get_next_work(struct io_wqe *wqe) } if (stall_hash != -1U) { - raw_spin_unlock(&wqe->lock); + raw_spin_unlock_irq(&wqe->lock); io_wait_on_hash(wqe, stall_hash); - raw_spin_lock(&wqe->lock); + raw_spin_lock_irq(&wqe->lock); } return NULL; otherwise the spinlock_t lock in io_wait_on_hash() is acquired with disabled interrupts which is a no-no on -RT. With that it all looks good as far as I can tell. Thank you. Sebastian