Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3388147rwo; Mon, 24 Jul 2023 10:13:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlHMRPFf5oJzZVBohBvzEXJbFbH+mNCPaYI21VXFlFPIoPfQuYwk0BDkIO1NWZpnTCeI3nio X-Received: by 2002:a17:907:78c9:b0:994:1880:dc32 with SMTP id kv9-20020a17090778c900b009941880dc32mr11559306ejc.17.1690218780994; Mon, 24 Jul 2023 10:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690218780; cv=none; d=google.com; s=arc-20160816; b=NVCdwlWXqAS9UYFVOpVO70cETsSEO1A+iqt0Wq3fjPV9KqJdsckkBv8YTyr3Ml60R3 rxZ0Cs4dqwtWe3nGXXE9SA/KXhU6LW7/Vgtyd/8BON7RKsViHjPguBddcpGs7qvO2VHo UCfkawitPUZPofZF4z9fD3hmu7KJb/B1YWAYV9KojVFYMvMIdCsAMCZLAQOavKVPan1+ IsN5GRS1P5UfjVjsaeT5xe3TBaXfSUYJsVQpnUxXXW5lneswm2OGbVkcKvHn6iJ0PeBb YPCFrcF4OUKAkcQnbHewfQVjSjzlWCD3KsRmQ3lCBKFSFotZ7kPAWcFW7k31glT7qg7B VMkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=uw+XohLghVtCiGSKeyi68igmJFzrXC/ki8Vbiy7Xrtc=; fh=6UugmdPjpmk3lRwbzxh6PHFP1JI9B+K2q+t0cjtLB1E=; b=vh39X+GaZRlkShzMP1PgAjcwikitQAmB5tdxz4QjTyWpKZp98qeFH/Wkqt+q6LzHPD 7vcNzKlB8WVkY8irGpjsL5p5ubu51Wx6yl0ElwER9eHKYQNBvkVT4lQM6+5wv16T7mXI EkuFrUfFZiQ8zq6MJG9ii3HaPAmTRqbgW5nv/gJy0ldZJKWO1VxnNPcV36L5hTSF1+zU 0o3YhbDKsSIQsubYhIvePZEJLNLgTre1xHku9yS3hqB7npVQ1rFSizuzF4S72Ep0YYaU LPvgAolHP4riAsr+1OhqK1fk9gLTSWHcAIgfE0Lnm22IFlX3qEhJIOr9VVMzlsfEgyYL XKMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=BBex3Ly5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=raspberrypi.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk10-20020a170907766a00b00992d2630d08si6666045ejc.788.2023.07.24.10.12.27; Mon, 24 Jul 2023 10:13:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=BBex3Ly5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=raspberrypi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229931AbjGXQtE (ORCPT + 99 others); Mon, 24 Jul 2023 12:49:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230099AbjGXQs6 (ORCPT ); Mon, 24 Jul 2023 12:48:58 -0400 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B506A10F7 for ; Mon, 24 Jul 2023 09:48:47 -0700 (PDT) Received: by mail-yb1-xb36.google.com with SMTP id 3f1490d57ef6-d066d72eb12so3787309276.1 for ; Mon, 24 Jul 2023 09:48:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1690217327; x=1690822127; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uw+XohLghVtCiGSKeyi68igmJFzrXC/ki8Vbiy7Xrtc=; b=BBex3Ly5/YN6q1aKSFxsy5pI6vMtkyehlBzSB6vAtLDKU1sJXbQfspIWohjXvRwuNE Qp2UFjzxprgfAgJIZ3HzieJpFAxvylorM4IOmEb6goaVtkbrT61FVO/mgf/JsCsFVQ8A O9RsLphxN0IfGAyKZIH9dPxoapCeM8Yd/2NtOeqkdtiRBWjMHpk6VBYKhUsAarSvfpME UwEoFlUXyA3pArnmlvRn2ZzMEhLONBBwS8udbD+BMRFDdpvtGyN6Huuc1fY/6XKDggB2 trIS4+nB2QmQaTR5scBWjue2/6+xMjvE5zuFBgTVnOY0OEN6lTcv4zizOg8J36CsQNeB exgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690217327; x=1690822127; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uw+XohLghVtCiGSKeyi68igmJFzrXC/ki8Vbiy7Xrtc=; b=fU5Pne7Ge4HKmsm+fO5VXcaNkr5dAneknunrSFRjpfVVWBsq5aWlGncZttpULtNe0H hswqfajs/6jqg6oGjOKvzi5AD50zZfqrJWlgB7uN9tQbg5HQ7JOPg4VLzU2VrgTuKlBB 3nrwv4yoLHR7yxFMpw8vaHhCuUeSjwr/k/yjx3xHLeDzuKihGlo9nuhNeGRK6VZ5/7kk AGTyRFoLUPrdjYsDp/M9dQU55qHIOuKBSW6tk7z1Gun4gww9/ybDqsBifHTyitmfbx48 nHx9d8izhLIpCVGHGue8hAbo8PnZwl0FW6jrqfVAlD0k+SZRvIcd3S39Q+HuP92pZYu6 y+kA== X-Gm-Message-State: ABy/qLY7f+mhNDMX9bwY3ZSyn4GZWPF5rR+pVxylK7g3chF0NAiWAlAC 61mCIk9t4j75/CpX+W4AyKYWcuhoBtZjLHQUKy8xIQ== X-Received: by 2002:a25:5507:0:b0:d01:a2e6:a3be with SMTP id j7-20020a255507000000b00d01a2e6a3bemr7232107ybb.5.1690217326963; Mon, 24 Jul 2023 09:48:46 -0700 (PDT) MIME-Version: 1.0 References: <2023072438-aftermath-fracture-3dff@gregkh> <140065e3-0368-0b5d-8a0d-afe49b741ad2@kernel.dk> <0ae07b66-956a-bb62-e4e8-85fa5f72362f@kernel.dk> In-Reply-To: <0ae07b66-956a-bb62-e4e8-85fa5f72362f@kernel.dk> From: Phil Elwell Date: Mon, 24 Jul 2023 17:48:36 +0100 Message-ID: Subject: Re: [PATCH] io_uring: Use io_schedule* in cqring wait To: Jens Axboe Cc: Greg KH , andres@anarazel.de, asml.silence@gmail.com, david@fromorbit.com, hch@lst.de, io-uring@vger.kernel.org, LKML , linux-xfs@vger.kernel.org, stable Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jens, On Mon, 24 Jul 2023 at 17:08, Jens Axboe wrote: > > On 7/24/23 10:07?AM, Phil Elwell wrote: > >> Even though I don't think this is an actual problem, it is a bit > >> confusing that you get 100% iowait while waiting without having IO > >> pending. So I do think the suggested patch is probably worthwhile > >> pursuing. I'll post it and hopefully have Andres test it too, if he's > >> available. > > > > If you CC me I'll happily test it for you. > > Here it is. < snip > Thanks, that works for me on top of 6.5-rc3. Going to 6.1 is a non-trivial (for me) back-port - the switch from "ret = 0" in 6.5 to "ret = 1" in 6.1 is surprising. Phil