Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3316361lqo; Tue, 21 May 2024 13:09:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6Dmp47Ie94SJNj0BG04acnghPejGTb7qlm8lQerGDX/oqJbArS+MF013RH2NzRcEmiZi7BlVKyaOM5DUqB7oKxwo4TqWXtmnJFE8DIA== X-Google-Smtp-Source: AGHT+IHMXMo2uFkyC8Ue1sbeujq+BPF2QKGi8VHZfFSvBv77Xe+mYwAigOaBWOuF9ftOw4iKddz4 X-Received: by 2002:a05:6a20:3c8d:b0:1af:f89d:831a with SMTP id adf61e73a8af0-1b1f8ad39cdmr64319637.50.1716322183328; Tue, 21 May 2024 13:09:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716322183; cv=pass; d=google.com; s=arc-20160816; b=UtTEs0aY0Tk6fY4ljoeVa3GR7gJ6oxXn2jrHnZy+N7ZBETDjAeYG0gZz7YCQxl/G3u 1LhuGDdDSUf1fI7e/6+PzUpqu4LiR6vi0sJ8JVHSbGYc1ZjPLWgBKY5RcO7644a3lKOc 6MNjXb5aa00hxa/f8K5Hf3qM7SfQn9hRwWURQSkFvXIY4UrQVmKMKKQaYF87tG7BL/gG AuYdPtAfdvqbWlUx7bUbDk462QLOCmYGmidGnEBLGLNFIQuMrNw/MaxCjQW5nB0fS04g 353nvHMbks3Ghhfvhvi4wOEWrf7wj5xPAtjm/kVfohNhMbvy6FMHojhUU9tBxXIepQr3 ULrw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=EWrpteYcdBNlx+6493QsXpUMihLRMiYDww87eKY9bg8=; fh=2cA+mkqkPKL+5sUkQzCCYRNv8muPPpSooIYOvwownOE=; b=Mz/PQrYhKVNDxce1ClUuFBhT7mYp4tlFUb8/IgTNU7I5AvMqmvJTaWewgiDGD7uX+g G7c/+igoC6c5kNga8XWv8a0Jj47L6ZSGUfMnBss7YF8uxRcSaB/PX8Peq7diGaBgFXF5 mCVLbkmWZMFknG8C1k3DYmIMQPlbBqeseaQs0bXaLSohvPYpQjI5BCDu34kfAD4rvHV3 ZQL8rh18xPnImDWHITXJC+w4CmZss1CEhbQKr2FbdtRPWMrHtDrLdoJOVCxwDy06NAAt ARmyPm+0FHhyXwnHwgi0/JpyM7mg+GEX1pRlHIsCUA/OBR90za8i/FSjWQ2UqaFuVc0y oYoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=urezVFcw; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-185405-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185405-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6757bf326besi305763a12.651.2024.05.21.13.09.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 13:09:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185405-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=urezVFcw; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-185405-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185405-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E1957B20C68 for ; Tue, 21 May 2024 20:09:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7D4A149C54; Tue, 21 May 2024 20:09:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="urezVFcw" Received: from mail-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15D2277105 for ; Tue, 21 May 2024 20:09:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716322162; cv=none; b=pnZ7BACZ4hZmOTAFP46we4hWfBfv4hoZOtLoUqB6uJ/Xfbn11NcgW9LdH/+5rDkKN+jI9mPz6GDaj5qPkWdZzOr8scn7PzpcmkGO2POfOAymaRWGafhlzEk2BQhHC6fiWmyjEeew4VaNiTwJMHaKnn1BIxKdwkEaN9iDUivDSUk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716322162; c=relaxed/simple; bh=Ia5u62ZgalmlFXflRn8jvvJ7YquyeyNuoWA9RxmS/I8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ek2DJuz+QhRQLkVoOe+078Me3kSxwwhhqdhdd5Os0xoeMfMg+VhkjZtjYM1Qff2faAvZ92I5+RiCiAULvfAMxQ5eIIemRgMDGvztz1Xt6esa3aKQ106Rvdr5p1CkntpdLQlgMpRsBC2F7TvbHcM44EX+8nNXY4CFoNCGQZZUbw4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=urezVFcw; arc=none smtp.client-ip=209.85.166.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Received: by mail-il1-f174.google.com with SMTP id e9e14a558f8ab-36c86ad15caso4574595ab.2 for ; Tue, 21 May 2024 13:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1716322159; x=1716926959; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=EWrpteYcdBNlx+6493QsXpUMihLRMiYDww87eKY9bg8=; b=urezVFcwAiXBmGxAsFkm97cF+UsuRLuHC0dXkrDQK/jCNIKBo1Yr3nZYS5q80L5Eu7 GDyuu7LMQKf2LpA+z8dtn4OmRvdZE7fNN+cIDxjXtsIrDgrUZS4b9hc8nOyH5iLxvts+ LXjfDggMZclw0guNwFOJJedhCjUHL3/Lw8FzuQpdD144HIbi/cUZuBH09mDS+kAbydZf NNpADEiNiL0gRuLH7vz0pMWsKBzGLk7NeoqzsUKHN5v8yNcAJyqRpRPVcIsxbCncGg2p EO6qBsC+lCGSHhn8dVfu2KU4QEJLJeQ0H1XPivealkzgHmYh5+hNh6c65K74RDtX5kGF ShYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716322159; x=1716926959; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EWrpteYcdBNlx+6493QsXpUMihLRMiYDww87eKY9bg8=; b=tKvFyNYNLAT+l7zM6Eo1JfDnerCuWEklv9etgqZCk07zP9lJMbEClnn3XQjIZmSEZX vSMq+IG0j/R4t9rq33PH+xTl8Fg0sEA1Vt+Ktz0REUKjdVXz63XKKDkCvlj0O6+2YXGO CoAYrNfXXkC+pPLiZAi7hJcCZKlklIco2w3ICLo7sVQjVGaxEmZGocbLbuB97qxOpXNJ OL53NynM/BXeffk2C3y46/2s9gu0MCrMpZeNqW9CZEQybwUrY7OIO6553xM6EcikGGfI 0R5iGVDpvFd6A4EvvOQ6nJ8YYabi12b5rB+rz6wWIXtF27ckTHChJn0tIIBS6+fwD0/Y JhXg== X-Forwarded-Encrypted: i=1; AJvYcCXgnYsUqazOU0rHWlzZeLddXAM3wsY+JHGu7fbcwpmcjINOkIubtihdQKAWXtGsNdRQ2efXeYVo484B+mWBOSpSwoB7Yz00PAu++66q X-Gm-Message-State: AOJu0YwhjFWcZJqE7aKH7zsldzghmMJqZUWZ6wBqlV6Ef9hv2YEWn9JM 7DEcQ6beuIwUAeYEW4hrAhBi52yS3mm60ic4LqQeVfQfy+Kxt6ZOvZ6OIaUhYpo= X-Received: by 2002:a05:6e02:13af:b0:369:f53b:6c2 with SMTP id e9e14a558f8ab-371f9405868mr782595ab.1.1716322159199; Tue, 21 May 2024 13:09:19 -0700 (PDT) Received: from [192.168.1.116] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4893703b15bsm7042659173.54.2024.05.21.13.09.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 May 2024 13:09:18 -0700 (PDT) Message-ID: <6c7676ae-f0a3-4a9d-bcfa-f6fa0a03c928@kernel.dk> Date: Tue, 21 May 2024 14:09:16 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] netfs: Fix setting of BDP_ASYNC from iocb flags To: David Howells Cc: 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 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> <322229.1716321947@warthog.procyon.org.uk> Content-Language: en-US From: Jens Axboe In-Reply-To: <322229.1716321947@warthog.procyon.org.uk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/21/24 2:05 PM, David Howells wrote: > 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 from 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. As it should, no-wait should imply not blocking on other IO. This is completely orthogonal to whether or not it's async or sync IO. I have a distinct feeling we're talking past each other :-) -- Jens Axboe