Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3314417lqo; Tue, 21 May 2024 13:06:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbhIOQhJGQJWlG98ZEXixptykfsxYJaSHdomVNA5Rx5MsTNgKHf9d0kfXktq/0CQtS6NOb7HDDiWqbtDVnTyOLBgZZswEXgE5jbWLlew== X-Google-Smtp-Source: AGHT+IE1hzkdr7tI4tvhIa9fVohltQKadlSmNOgLrMoHKN2qfsD1w2q+kd69fB6ri55LJhZAU/CN X-Received: by 2002:a05:6512:52a:b0:51f:13e8:3729 with SMTP id 2adb3069b0e04-5220fc78605mr19064709e87.20.1716321963728; Tue, 21 May 2024 13:06:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716321963; cv=pass; d=google.com; s=arc-20160816; b=SqVnAWVgJo805sLvKolt9OW9DmYo0QSTBAMo7ByAFSFuvBUwLjuoLrLoV6Gqrv53aR AJskapUNX1wDid9Os2D4pL+VmPuBvgzfK/KrwGKDnvdzOFIZFIMCqEzqtb6HHcCq6zcL k9xg9N4WnFZPslnRvkkWYIpaQ6F/FYjDnBgv5rbx1ESDO5Dst30Nvkwu3eyqvEcfnBgB Ht8xTUkzbCr6L6RjcA17tryPOUGDKPpQ9LNg2jAeHsMaRSZicsO1fSFfCDRCwWDItTJ9 wIVMhDMB2KsYRHAVV0Le6gV7LKZK/bCKsIq/26P/izncfwmrGeElVWKfxjucl/QzCAxY nfHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:content-transfer-encoding:content-id:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:cc:to :references:in-reply-to:from:organization:dkim-signature; bh=kUcZx+GYvnpd0qagpN08S3w0mckRV0Hazws3JBEBOHw=; fh=s+niglHrocknOa0M45OuVG4aXd5rjo8nLQCogCYAiXA=; b=kYIKLzjPFM02YhnSe5T05uwjqhw/haBXwI61+agV/ue8SZ/CePpOBqojm2tm83+wV6 M5xIpnaTXdS5uKzfq+LlKcLz757sUkAQz0Kj5VVWfEGaTyjWiFZdVr/bUPEUZ70ikGDB bD/fude8DSDjpWrTjTIeuo4PPImaK8Ki5Ax5tiAMkUwkGrhaDeDE0PIcUG1oVmlv2YGd kD+1rWoREsIRUq6TAvNOAQP4sCSyxYxxEXv/SSuvTcbbCrhWYioKk85zQ6Xg/aYTTQIE Cck1NJNQBVPmN/vnhC6fIUn+BMuW7TiG3t0TPAUcqd9KzysggyFY1Ex1Eam+ZsT5gQ7q TzXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FEH9Wz1X; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-185402-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185402-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5781edabca1si1353092a12.28.2024.05.21.13.06.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 13:06:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185402-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FEH9Wz1X; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-185402-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185402-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5A25D1F233A3 for ; Tue, 21 May 2024 20:06:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59694148FE1; Tue, 21 May 2024 20:05:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="FEH9Wz1X" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1DB631EB40 for ; Tue, 21 May 2024 20:05:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716321956; cv=none; b=Ea42IsDAMTXiGzo+y+2tnoy1s4Ey5A4addSqXAZKLQb1cqOX/6CgpHSChitmT3y0SPb7EZtJp3PVl7jyHSL1c1nL7A7RkZFX/iWwsNPsp+e99hU6sbxG+F+ZQebbORCJsRMG4Wp7AFZDRrONHhYpJI3E7C9y+gOfVBXUtBlpsLw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716321956; c=relaxed/simple; bh=n1XYT0f8NZ7GY+qdmS7k5N3aMcsAOCFt6lECER9tD1I=; h=From:In-Reply-To:References:To:Cc:Subject:MIME-Version: Content-Type:Date:Message-ID; b=fetFT3rOLDhZD48HVwLJYe/D1vrjtbvvU6S4+0bRrMqkhAMD/m3hGb66wNGQ+3ZElDWadq396doXS6R888uPKsadj8kvKxHFg/D7L0NpRK0MkV4xx2PftlCEXrPZcW36zG8uKA+el6Gbm7ZvJLDEtK3BewHtxUwxDeHHk2x3hEI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=FEH9Wz1X; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1716321954; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kUcZx+GYvnpd0qagpN08S3w0mckRV0Hazws3JBEBOHw=; b=FEH9Wz1XXIi293NSIf/plGpADF71XNQAb5nC6IJTUJmgqAq3CvbwEaVHSeG7rhFM3vFP5q g7HT64B7uVgkltweLFiKDrDBeacHYAJzNVWOXTSfhySGd60Tfq8K1YwsA+QUiVXYkJni0Q Yvbgm25ofYpJLNrX7ydr2SUNhw51I/I= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-504-g-ZkIjQxPvWuKP4dSTmyWw-1; Tue, 21 May 2024 16:05:52 -0400 X-MC-Unique: g-ZkIjQxPvWuKP4dSTmyWw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BB112101A52C; Tue, 21 May 2024 20:05:51 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6178A51BF; Tue, 21 May 2024 20:05:48 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <110d2995-f473-4781-9412-30f7f96858dd@kernel.dk> References: <110d2995-f473-4781-9412-30f7f96858dd@kernel.dk> <2e73c659-06a3-426c-99c0-eff896eb2323@kernel.dk> <316306.1716306586@warthog.procyon.org.uk> <316428.1716306899@warthog.procyon.org.uk> To: Jens Axboe Cc: dhowells@redhat.com, Steve French , Jeff Layton , Enzo Matsumiya , Matthew Wilcox , Christian Brauner , netfs@lists.linux.dev, v9fs@lists.linux.dev, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] netfs: Fix setting of BDP_ASYNC from iocb flags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <322228.1716321947.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Tue, 21 May 2024 21:05:47 +0100 Message-ID: <322229.1716321947@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 Jens Axboe wrote: > On 5/21/24 9:54 AM, David Howells wrote: > > Jens Axboe wrote: > > = > >> However, I'll note that BDP_ASYNC is horribly named, it should be > >> BDP_NOWAIT instead. But that's a separate thing, fix looks correct > >> as-is. > > = > > I thought IOCB_NOWAIT was related to RWF_NOWAIT, but apparently not fr= om the > > code. > = > It is, something submitted with RWF_NOWAIT should have IOCB_NOWAIT set. > But RWF_NOWAIT isn't the sole user of IOCB_NOWAIT, and no assumptions > should be made about whether something is sync or async based on whether > or not RWF_NOWAIT is set. Those aren't related other than _some_ proper > async IO will have IOCB_NOWAIT set, and others will not. Are you sure? RWF_NOWAIT seems to set IOCB_NOIO. David