Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32607534rwd; Fri, 7 Jul 2023 17:33:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlF7//SBPuaR69u7qX8HeHebf0LolN5k25gqM+p2sZjxUNiR7etzfT82BuQRFEJSdG4Vq6EL X-Received: by 2002:a05:6402:350:b0:50b:c630:a956 with SMTP id r16-20020a056402035000b0050bc630a956mr4621010edw.17.1688776433706; Fri, 07 Jul 2023 17:33:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688776433; cv=none; d=google.com; s=arc-20160816; b=Q6EVDksFdVfH6YKKWGmfzNYpnOYyxE0gS2/EPj8o1RFxc++HXf03CiQAA+ykY9eOa7 jZm/TXvpB5z1StBqeCyhF2cfhl0Z3Nq833ZeljhF30h9Pbbj63pJC1mtgUcD7sa6xoDl VWWwHI3Y3ID5WHDegvP0IkwotQSC+ji8z5CHPRVj4fPX2y5eyHJo++9bhCiIis9Xg5/a 9qVIaChzqVwlQZk+F3W+1bccwBptPB+BYuZKEFBuQpfMJJTX8PoxWJkacf9zdRjSRttm w/lSk0oz5VX33l0UmaGeKKYWioxB5UeXK11WOFdP5nUXDuDvmA96SvwWIGHeD1CLUfQD nkww== 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=KE9Cw62WlLN5tGDQEG2KXlZYlpSw2T4lzA0FCYw64H0=; fh=KARAqQqljLrOCu9LPuz11jU6xyJedM6JbFX7fEe0fF0=; b=sFgrSHp1vNfj+tk7EQTPFG5pmENXT+hQQapgR1FcciOkWn0GMFLUI9PVrdGGRE7Mvy DvNo/fEKW+OIac9BRdLPFhXIkANGuhggV7HOZe7TbJebaYT8gfJm3UBvp61QlVdwSmzS bWIuWvKKJBCIYW/aYG/JPFdCQRhFQ9WJR+i0kfuwGl5zBhRfUzPhI88fgx8iEsUnVQZX AmoiarLgNntBUSZoSyTeV3klkNBSU5EmYFwPUsDcCvcoX4SiFU8Ql57uZ+EMUXfmvtXv a1w6YOsFA9x8XvFz2wZnI9PJxB3q4pK7B5kobYaB7qW7LaI3r2+CPCYZExCDMuuM2U3y 02zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="OSrn/4aJ"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j17-20020aa7ca51000000b0051e16fa4034si1356980edt.222.2023.07.07.17.33.29; Fri, 07 Jul 2023 17:33:53 -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=@linux-foundation.org header.s=google header.b="OSrn/4aJ"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232809AbjGHAHd (ORCPT + 99 others); Fri, 7 Jul 2023 20:07:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232730AbjGHAHb (ORCPT ); Fri, 7 Jul 2023 20:07:31 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2AE7131 for ; Fri, 7 Jul 2023 17:07:29 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4fb761efa7aso3854526e87.0 for ; Fri, 07 Jul 2023 17:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1688774848; x=1691366848; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=KE9Cw62WlLN5tGDQEG2KXlZYlpSw2T4lzA0FCYw64H0=; b=OSrn/4aJz295SutPCY58T8kNFD0ZeiUDY+OYH7DijkWBlnGIEEYDVTjrphYujv8L/C VpkbQYYFwXBapBTh3WJMOhE3gk8gm8Z45MHfx3iujKO35IBU3OkCH9kHst4F9nJGuHs3 waDSW/izGakNypnv3ecOWKb+nLA3Loxu0nsnk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688774848; x=1691366848; 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=KE9Cw62WlLN5tGDQEG2KXlZYlpSw2T4lzA0FCYw64H0=; b=YSd2dCpIuLx4dTop1F1EGrFv4FmddwDrDKUufFNL+6YzV1f4oS7kAAnSSZVMcOHb59 7lL3FgwqyCHEruS4rNwsOWZ1s9ihXLKf19WyJdFUpqaHCQtHwoMMfUxq4WeYUl4pGlr4 S1RT8I113+qf/g3fnFHh/x1FDY3LAeqM/N4DTEtCmcLcZy6B3vlwVFX+1JqifphcKqLy zsoxAu8nIAJ9fk5jue5BWt/ysBOaVbW73qtPme5Gvyzyc6oZ/smiSayEJ++BlzTxfORz vdjFHWCEj1CtPYM4oh+xycjDuMB6aSMKD5M9oDHvS8dJLjxCSvqPF1Uvh6T55zlWnQQO bhYA== X-Gm-Message-State: ABy/qLYsH+n7PIQJmaRZlUN6g5grCQCnqQhXVR7scbNflPaZfWBiqIEm s4cJoz5dWVIvx14z07+sg6Mop3NFxiE8he1t7pkEEK+1 X-Received: by 2002:a19:4f10:0:b0:4fb:7c40:9f97 with SMTP id d16-20020a194f10000000b004fb7c409f97mr4546991lfb.27.1688774847930; Fri, 07 Jul 2023 17:07:27 -0700 (PDT) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com. [209.85.208.182]) by smtp.gmail.com with ESMTPSA id n14-20020ac2490e000000b004f85d247069sm846761lfi.218.2023.07.07.17.07.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Jul 2023 17:07:27 -0700 (PDT) Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2b6a6f224a1so40110151fa.1 for ; Fri, 07 Jul 2023 17:07:27 -0700 (PDT) X-Received: by 2002:a2e:880a:0:b0:2b6:cc93:4ecb with SMTP id x10-20020a2e880a000000b002b6cc934ecbmr5251360ljh.43.1688774846751; Fri, 07 Jul 2023 17:07:26 -0700 (PDT) MIME-Version: 1.0 References: <20230626-vorverlegen-setzen-c7f96e10df34@brauner> <4sdy3yn462gdvubecjp4u7wj7hl5aah4kgsxslxlyqfnv67i72@euauz57cr3ex> <20230626-fazit-campen-d54e428aa4d6@brauner> In-Reply-To: From: Linus Torvalds Date: Fri, 7 Jul 2023 17:07:09 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Pending splice(file -> FIFO) excludes all other FIFO operations forever (was: ... always blocks read(FIFO), regardless of O_NONBLOCK on read side?) To: Matthew Wilcox Cc: =?UTF-8?Q?Ahelenia_Ziemia=C5=84ska?= , Christian Brauner , Jens Axboe , David Howells , Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 On Fri, 7 Jul 2023 at 17:00, Matthew Wilcox wrote: > > Do we really want interruptible here rather than killable? Yes, we actually do need to be just regular interruptible, This is a bog-standard "IO to/from pipe" situation, which is interruptible. > That is, do we want SIGWINCH or SIGALRM to result in a short read? Now, that's a different issue, and is actually handled by the signal layer: a signal that is ignored (where "ignored" includes the case of "default handler") will be dropped early, exactly because we don't want to interrupt things like tty or pipe reads when you resize the window. Of course, if you actually *catch* SIGWINCH, then you will get that short read on a window change. Linus