Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1232872rdh; Fri, 24 Nov 2023 07:54:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5Zm4mbEMr76fSODBl4iGRhSM4raJ+5bXrkZ5LhM+LKVjlmDWAjUMpzFk32fqX1vC3KmZb X-Received: by 2002:a17:902:7483:b0:1cc:6ec2:d24e with SMTP id h3-20020a170902748300b001cc6ec2d24emr3608068pll.53.1700841251183; Fri, 24 Nov 2023 07:54:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700841251; cv=none; d=google.com; s=arc-20160816; b=gMSHqEquF1gX3vEE1esPDj7n6W/8ue4DLhgDLhbdUHnXBZh6glI06R61aONUI2jv+A 055H4VvI1t4khrfRNLdqaLsztuiqAj69MtF3MfPHiiCxOj8yLTgKocK1s2DbuIZ4BxfP 7hGAa7aS9NBb7tiIySaw1M0dFHJTuwPmYaDMiQxQSCKh4vtH6T+mf2309VBV1E1QbTBS choWDnABcGd4oFS2SPS4NmPdSXaI2mfffsgJ1d3hQesOoT8jlamYgZFAna0kPmDbXjsB j9jDoNdsFCm/t/EBLyqXPCOm3wpPKS2c8e+GRSpq4BOZJ/SLGWKi0JatEv4Jj6bRj6SH VJgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-transfer-encoding :content-id:mime-version:subject:cc:to:from:organization :dkim-signature; bh=aI7yOeP+aTNuK7EBwRmxy6gF4Tua25jWVuFZl/CnCAo=; fh=BnPc4HxLB4Ix4C/ZpJLKY4s/hOQo7zz8up2HVPpzoc0=; b=Pr/v0kttHHQfWYsaLK6dFx9Tj4XINxQff3fzGO/7j8BXE5PBd6u8TlCKRgqBlqgcYB g+4nm80gZ/16UTE8eufoK7nbarxyDKPqyigDTytKUVYF2TWf0fNncng2ZTAMvBWKsUQY +MLSQAyz5Um+LaFaFnW82ls1xz6kM7sJJuXBLStOPqUdFVfwkyceeYThCG+FP7I6o+sk lhOeaESvKR1HYZuO4lm9+FKux3CMU+7LsOiHc+1yAaTMWN3KPAYfXvTLyDzFf6xlEJEq Bbu3JItIiozFqKLqd9npfciFRMXfUmf8vVfYEqiXGJmYMkVZkv1syuwrzXpR1dX9IEO+ jrXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YrS9oXPT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id k17-20020a170902c41100b001c3a05b0b58si3769175plk.500.2023.11.24.07.54.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 07:54:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YrS9oXPT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4A59E826C0FB; Fri, 24 Nov 2023 07:53:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345714AbjKXPxT (ORCPT + 99 others); Fri, 24 Nov 2023 10:53:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346072AbjKXPxC (ORCPT ); Fri, 24 Nov 2023 10:53:02 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC0031BC3 for ; Fri, 24 Nov 2023 07:52:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700841145; 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; bh=aI7yOeP+aTNuK7EBwRmxy6gF4Tua25jWVuFZl/CnCAo=; b=YrS9oXPThumt112TevJ57KO7qrGp62sSqsMchyd5L5kuBoFOloPPJCXXWVy+tBe7B7ODzZ 7RxtHvC7GyeIwl5hPgcam4ch77OTCH8b1TOHZ5gc/t3lr/QFladU5PrWLy0I+0I5K+JBLF Do+KQLuU1t3OeQcxWbNLl+SJyt40F5o= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-136-XhlQ56NtOwCRXr3h4qodEA-1; Fri, 24 Nov 2023 10:52:22 -0500 X-MC-Unique: XhlQ56NtOwCRXr3h4qodEA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (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 B925A2818768; Fri, 24 Nov 2023 15:52:21 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.161]) by smtp.corp.redhat.com (Postfix) with ESMTP id E703CC15881; Fri, 24 Nov 2023 15:52:20 +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 To: torvalds@linux-foundation.org cc: dhowells@redhat.com, Marc Dionne , linux-afs@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] afs: Miscellaneous fixes MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1205227.1700841139.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Fri, 24 Nov 2023 15:52:20 +0000 Message-ID: <1205248.1700841140@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 24 Nov 2023 07:53:30 -0800 (PST) Hi Linus, Here are a set of miscellaneous small fixes to the afs filesystem including: (1) Fix the afs_server_list struct to be cleaned up with RCU. (2) Fix afs to translate a no-data result from a DNS lookup into ENOENT, not EDESTADDRREQ for consistency with OpenAFS. (3) Fix afs to translate a negative DNS lookup result into ENOENT rather than EDESTADDRREQ. (4) Fix file locking on R/O volumes to operate in local mode as the serve= r doesn't handle exclusive locks on such files. (5) Set SB_RDONLY on superblocks for RO and Backup volumes so that the VF= S can see that they're read only. Btw, I did want to ask about (5): Does a superblock being marked SB_RDONLY imply immutability to the application? A 'read only' AFS volume is a snap= shot of a writable volume and can be updated. It's only read-only in the sense= you can't perform normal filesystem modification ops on it. Link: https://lore.kernel.org/r/20231116155312.156593-1-dhowells@redhat.co= m/ # v1 Reviewed-by: Jeffrey Altman Thanks, David --- The following changes since commit 76df934c6d5f5c93ba7a0112b1818620ddc10b1= 9: MAINTAINERS: Add netdev subsystem profile link (2023-11-17 03:44:21 +000= 0) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git tags= /afs-fixes-20231124 for you to fetch changes up to 68516f60c1d8b0a71e516d630f66b99cb50e0150: afs: Mark a superblock for an R/O or Backup volume as SB_RDONLY (2023-11= -24 14:52:24 +0000) ---------------------------------------------------------------- AFS Fixes ---------------------------------------------------------------- David Howells (5): afs: Fix afs_server_list to be cleaned up with RCU afs: Make error on cell lookup failure consistent with OpenAFS afs: Return ENOENT if no cell DNS record can be found afs: Fix file locking on R/O volumes to operate in local mode afs: Mark a superblock for an R/O or Backup volume as SB_RDONLY fs/afs/dynroot.c | 4 ++-- fs/afs/internal.h | 1 + fs/afs/server_list.c | 2 +- fs/afs/super.c | 4 ++++ fs/afs/vl_rotate.c | 10 ++++++++++ 5 files changed, 18 insertions(+), 3 deletions(-)