Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2242420pxb; Mon, 12 Apr 2021 19:12:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH6Kz6F3CsdsA67nXy4zCSMd0PgHypyVeQI92UsFVtHGkpqdTLIUMxEiub7MHoQhhHCZUq X-Received: by 2002:a50:ed17:: with SMTP id j23mr30865609eds.260.1618279960220; Mon, 12 Apr 2021 19:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618279960; cv=none; d=google.com; s=arc-20160816; b=JqzBkes7Bifd7N3wE+vp9sJYAjkRAvNQzx278XAeH8P84glgFkg1J6wpJrutoa4IaB x2CwgLqGF6rGcqjFww/umxU/7LRBWTZPf5pMBkVWXqr9wnmRhCmwvrodBnifN8N082g5 N3woVaJKJdvKxKk4ZviXcLLKQGWum1biw1/gOdD1NCBcUJIuqM5y9a+nkF+2zgQG1XSa YEtGcAgg1nWxFWdrIyW/Lcu9kaFkRDRpE+Y0/p+ZtbCkmXeIet0qq05sDVCfwDRvrlE3 lcv2a4x1/ckgtv+8u9QtQzCKxowjZ7WxS6CvMTo+TsoyUfZzfWZLCuFfoMX2sTVQxOoy caeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=gr77k9QIz5RgOpRuocDvfRh6v9EnFR0pe6j1Y5IYB2c=; b=QPKUZmFC2BRPcHwP7uB/ZaUUVdecIPVsLyc1LqBFTPZsq7YcNazERrOnvnQNkOhzeG J2M2vobXc4cNhKOUUfCldDB6qmI4Mn6/cHoWAUJJ0v1s5bEW5WwjdloE6YDoF/54Ez0d IB2NovaDoBmT/vgyC2/owb/iI8FD0jd94bVsp/ynp4BE0mD+W3JCT8JYORGkPYggFUTX nHcvV+nxaPGFb5qmK50j9cgRhN2/67Wu9RV6K5h8fzPNC19gyJOBps5yak9a52aCzdwP bzM3yYL6i5lbOLi4vqO65hL8awk7AW6UV6d/JEGDqlWsJjMTjMNDTESBTRrDkjrD6YvT db2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=0lVDWVm2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc27si8794969edb.130.2021.04.12.19.12.15; Mon, 12 Apr 2021 19:12:40 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=0lVDWVm2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240875AbhDLMkJ (ORCPT + 99 others); Mon, 12 Apr 2021 08:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238587AbhDLMkI (ORCPT ); Mon, 12 Apr 2021 08:40:08 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5151C061574 for ; Mon, 12 Apr 2021 05:39:50 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id u14-20020a17090a1f0eb029014e38011b09so2203994pja.5 for ; Mon, 12 Apr 2021 05:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=gr77k9QIz5RgOpRuocDvfRh6v9EnFR0pe6j1Y5IYB2c=; b=0lVDWVm2c4P6uDnoiat392Tzm+7LBnyUzpU5Wt2kYXqlKQqRgnzzkcPBZ5bC96fT53 WaC89SsJzCZZlw3XjnaoKp9POAJNaMWypeUhMOUXE6UwNf5evSUhXjINsGpDJEsjykpG tK4/+emmLri02KKDgdDuT/vFBXZWYc/QRWd3pdGijKa7waLuYw8wMsXeioTJJ9vf+gKk EU/AOtNsPQVpQ9z+yJFvwQeN7OqAdRPMdVwxGqMSFL0IYWthX8FUVd2Uh+qCj6KDvHDk aOFih1e0kXItsRoYXmJ/gIdqXF8JkybU1sEja7r93RvLioldEwYsJPIr+K0xBciiDb4e 53NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gr77k9QIz5RgOpRuocDvfRh6v9EnFR0pe6j1Y5IYB2c=; b=ZCekZc3ORKWg00duTq8RxDVu0KeKFKqdEmPUaoJ5TIIluSVdXKPgXVHMpWUncFILZ3 D59WUwGxRQeDbyTmsqQLJEZbG3lafC0hpNppfDTCfPFZS4iaIHdfs8MDAMdjb1I4retY TvkISMiKou5TJu+WKgsAJpP1ZtwKPm6rnc0P2cgFw0zmzizhg2AnvKKY7PmrpJfh2brw oZ1iqiZyO5kiNqnXkYUhx3znMqGu2ISOjXcXs6Z8/ObXSSyEXhNwgGCZxSwxOgbWX+dL 1fN4FZxC3hG/F2QJ6rvi/jo/rLuf5dC9ptRLkilQxabL0JiGz8SvdgylfTcEALTLcvia pFvw== X-Gm-Message-State: AOAM532XP1yfPwaxf8UiVU+5s1Vn2Psy2jWF61GmIjAsf+hBw0tpXsDG dCe4t2f9ZmeDIugiXRKR+Bowet7bG0GzyQ== X-Received: by 2002:a17:90a:f307:: with SMTP id ca7mr27538838pjb.80.1618231190278; Mon, 12 Apr 2021 05:39:50 -0700 (PDT) Received: from [192.168.1.134] ([66.219.217.173]) by smtp.gmail.com with ESMTPSA id a3sm10238643pjq.36.2021.04.12.05.39.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Apr 2021 05:39:49 -0700 (PDT) Subject: Re: mmotm 2021-04-11-20-47 uploaded (fs/io_uring.c) To: Randy Dunlap , akpm@linux-foundation.org, broonie@kernel.org, mhocko@suse.cz, sfr@canb.auug.org.au, linux-next@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, mm-commits@vger.kernel.org References: <20210412034813.EK9k9%akpm@linux-foundation.org> <34ed89e1-683e-7c12-ceb0-f5b71148a8a7@infradead.org> From: Jens Axboe Message-ID: <9533afdd-208e-c25d-2e11-cc7f2c9d147b@kernel.dk> Date: Mon, 12 Apr 2021 06:39:49 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <34ed89e1-683e-7c12-ceb0-f5b71148a8a7@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/12/21 1:21 AM, Randy Dunlap wrote: > On 4/11/21 8:48 PM, akpm@linux-foundation.org wrote: >> The mm-of-the-moment snapshot 2021-04-11-20-47 has been uploaded to >> >> https://www.ozlabs.org/~akpm/mmotm/ >> >> mmotm-readme.txt says >> >> README for mm-of-the-moment: >> >> https://www.ozlabs.org/~akpm/mmotm/ >> >> This is a snapshot of my -mm patch queue. Uploaded at random hopefully >> more than once a week. >> >> You will need quilt to apply these patches to the latest Linus release (5.x >> or 5.x-rcY). The series file is in broken-out.tar.gz and is duplicated in >> https://ozlabs.org/~akpm/mmotm/series >> >> The file broken-out.tar.gz contains two datestamp files: .DATE and >> .DATE-yyyy-mm-dd-hh-mm-ss. Both contain the string yyyy-mm-dd-hh-mm-ss, >> followed by the base kernel version against which this patch series is to >> be applied. >> >> This tree is partially included in linux-next. To see which patches are >> included in linux-next, consult the `series' file. Only the patches >> within the #NEXT_PATCHES_START/#NEXT_PATCHES_END markers are included in >> linux-next. > > on i386: > # CONFIG_BLOCK is not set > > ../fs/io_uring.c: In function ‘kiocb_done’: > ../fs/io_uring.c:2766:7: error: implicit declaration of function ‘io_resubmit_prep’; did you mean ‘io_put_req’? [-Werror=implicit-function-declaration] > if (io_resubmit_prep(req)) { I'll apply the below to take care of that. diff --git a/fs/io_uring.c b/fs/io_uring.c index 3a837d2b8331..aa29918944f6 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2464,6 +2464,10 @@ static bool io_rw_should_reissue(struct io_kiocb *req) return true; } #else +static bool io_resubmit_prep(struct io_kiocb *req) +{ + return false; +} static bool io_rw_should_reissue(struct io_kiocb *req) { return false; @@ -2504,14 +2508,8 @@ static void io_complete_rw_iopoll(struct kiocb *kiocb, long res, long res2) if (kiocb->ki_flags & IOCB_WRITE) kiocb_end_write(req); if (unlikely(res != req->result)) { - bool fail = true; - -#ifdef CONFIG_BLOCK - if (res == -EAGAIN && io_rw_should_reissue(req) && - io_resubmit_prep(req)) - fail = false; -#endif - if (fail) { + if (!(res == -EAGAIN && io_rw_should_reissue(req) && + io_resubmit_prep(req))) { req_set_fail_links(req); req->flags |= REQ_F_DONT_REISSUE; } -- Jens Axboe