From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AFF4BC433E6 for ; Tue, 23 Feb 2021 02:01:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 66A0D64E5C for ; Tue, 23 Feb 2021 02:01:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230316AbhBWCBK (ORCPT ); Mon, 22 Feb 2021 21:01:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230318AbhBWCBI (ORCPT ); Mon, 22 Feb 2021 21:01:08 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60EFFC061794 for ; Mon, 22 Feb 2021 17:59:54 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id h98so16185658wrh.11 for ; Mon, 22 Feb 2021 17:59:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=KUKtNNGJAmu1NPZBvBMKijmfKA7sL6hg28BNMJwq4OI=; b=H7i5Qdw7EqLu9seZX9xJNfccTgUwOnubLkAc6zasNYWYIRa8UIZ5EZSHZMxAWWinXW PNJT6fpkw2wW2lXpLHhy/D0OHhf7D7rQ7OOmzpaCRqks7jkw6S8tTfRLp0fqzMIxL5NC xBJ8u869kdk2LykJhsOwgXKHmCZu/1FT65DsYgYU+N7dAsL2AToHmvdwJYK9AgCvZGJR EaJyMDBEcDV3VydSb0MtSeM6pwxZgKdFdP7gYeTdkwkvObl/W6IasnguJ5x1mu2Q4nmL a3wNu6RDBwKxi4F8fyIPlF11gxz9OZLedhOsxCLEsnvH8x8UT6CKrcwmgriUD+kcoPq0 6XBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KUKtNNGJAmu1NPZBvBMKijmfKA7sL6hg28BNMJwq4OI=; b=bKbsUrW2i8UPPXadvJdXJydV5W20uV/lAL9/+ELWhDWUwumSspOmLnwLGaagetbSEa 1HVGQiAclmrrID+dWan+4WOoRjE8HcEw+UuL9GP0HPDeHHoEnRdterfg1v2k4zGB4a5p mHlCh7xuIGGjZ3CRceCcAfrnoQ6W1jc2D4nEB8EeSVXHKINAoXFF4ocKGq0GPVfH8+Di ke4ufPMpCZltXKIoOiHH0AVBxNBydNq+RN31ZdkBj8hcMEFNeimmW7xAZ5oToXV5BhRO KVT2NPRlZjVbCPCjlF57i4FJh7VS85sKggveKu1bCbVifcQEcQsL9Wlxr3El9XAIR1Ip AcZQ== X-Gm-Message-State: AOAM531XxoRZL6tg05waqIjH8MlC4DuL9+snTcc13JwrZN6N22CAjfhz s2PKdRAmz3WcPNFCjRgEIzU= X-Google-Smtp-Source: ABdhPJyI6KfWjmj+yPgs5nkXds3ulcXc4b3EfFA9ZlIp14nWfmgvPMl+/8sX4v+Fa2ApsarfBAhJGw== X-Received: by 2002:a5d:6503:: with SMTP id x3mr7652739wru.249.1614045593245; Mon, 22 Feb 2021 17:59:53 -0800 (PST) Received: from localhost.localdomain ([148.252.132.56]) by smtp.gmail.com with ESMTPSA id 4sm32425501wrr.27.2021.02.22.17.59.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Feb 2021 17:59:52 -0800 (PST) From: Pavel Begunkov To: Jens Axboe , io-uring@vger.kernel.org Subject: [PATCH 07/13] io_uring: don't restirct issue_flags for io_openat Date: Tue, 23 Feb 2021 01:55:42 +0000 Message-Id: <80307210ea4680385eb989dc170729b4b92fe914.1614045169.git.asml.silence@gmail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org 45d189c606292 ("io_uring: replace force_nonblock with flags") did something strange for io_openat() slicing all issue_flags but IO_URING_F_NONBLOCK. Not a bug for now, but better to just forward the flags. Signed-off-by: Pavel Begunkov --- fs/io_uring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index 39aa7eef39c2..d2cbee73fd4a 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -3870,7 +3870,7 @@ static int io_openat2(struct io_kiocb *req, unsigned int issue_flags) static int io_openat(struct io_kiocb *req, unsigned int issue_flags) { - return io_openat2(req, issue_flags & IO_URING_F_NONBLOCK); + return io_openat2(req, issue_flags); } static int io_remove_buffers_prep(struct io_kiocb *req, -- 2.24.0