Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3371259rdb; Thu, 16 Nov 2023 07:53:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGzDzaRf23RY+8qCPBG9mDCR0mjgi8HD32nOGNZleBcz9fhk++D632Wpt4+mfDskYJyFN3F X-Received: by 2002:a9d:6218:0:b0:6b8:9483:35ba with SMTP id g24-20020a9d6218000000b006b8948335bamr9768333otj.24.1700150026037; Thu, 16 Nov 2023 07:53:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700150025; cv=none; d=google.com; s=arc-20160816; b=MJ3+gGe/2dPMzaNLex1vuoqVXS5xy+hT4aa1PlglIoBcFd58W5m4dR1/ppRvntcAe6 E9WQLIjxsoel++z2nGrF18+bRQFJP3Z6Mli+Tyu84iQd3nTS9fEkYMiC4BDm9mYAQN4m NefymMgzsZr6eZ/hTQXH9BPhvg5jyUpW6KBF+PhONwmGz70/dduL1G7xpNWE/zQ5f6X/ mBOhzED61UaAohfFevfY3Q+aMDP2TcrK9jsdU5MpA2OPaKeMiiVG3j1sIjyvKhe/08bP kvTQj4xAWiKfsNqOOkJIQbXhkwdizEedfhn6q0aOkH1ddGA4ZP1xHhjDkg5xJCgWMPOO aQiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=lHUKvjwQrjXQEAVtUnOqPty0/WpF2RSZ6CP33ILo6BU=; fh=9hT4l0EMR1D2zdgUoRXiqFwsybSJyrmM/FC/blQlPsI=; b=LvO5RrD3y5bp1Khu6Ez0AEGG5pMFC/3Ll6ZKp43ipyJqsklbUlQp6RRcmaXOBb6lKK KrRgmvQvGMam8PvDcxgo3QIGEWSAOJxrzJOqQBqxUYkYE09nLTmW0XtzwtjDCAhUQzzr Vc8SEKYxFLwLsjrLHHkMxjUdAQ1iHaFuBkghMVEteXOYLZOGgUl1jBPEsu6yktOsfNwX 5QWsxgiBZ5hA4oxwr1mg+8+tQLzeiULSzAjgYmoxIgpRVBe7JfPplYqzV1UmSeKdM95v G525kXo9ESxnNeyrYciPWJOkd7Y1pM2+PRZSNtwhfDBdKy11DZ8OIwWSh4iNndpgMuAp 92tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cXcIT2vB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id bw6-20020a056a02048600b0057877ee7d78si14036724pgb.575.2023.11.16.07.53.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 07:53:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cXcIT2vB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id C3A5380EF27A; Thu, 16 Nov 2023 07:53:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345361AbjKPPxY (ORCPT + 99 others); Thu, 16 Nov 2023 10:53:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345202AbjKPPxW (ORCPT ); Thu, 16 Nov 2023 10:53:22 -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 E8D71101 for ; Thu, 16 Nov 2023 07:53:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700149998; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=lHUKvjwQrjXQEAVtUnOqPty0/WpF2RSZ6CP33ILo6BU=; b=cXcIT2vBcdAB7AznJs9aaRqv/DXr+CHYkewZ7p5Fc+ZKeWGikrBHAK4mUKPHvgop8DTYKA 4fcSkzb/D/KaRZcVA6Ni0CgC8+S8qaWghPDQa1Q38DjSgzIHG8D9O+VxT/JvwoydJK5tIS F3EJJZ/rLCtJ0+u7EZT0VVGN6/1KOyY= 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-80-tXaJjjbrOpi8udMbc6GSuQ-1; Thu, 16 Nov 2023 10:53:16 -0500 X-MC-Unique: tXaJjjbrOpi8udMbc6GSuQ-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 3FA36185A785; Thu, 16 Nov 2023 15:53:16 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 70FFD5036; Thu, 16 Nov 2023 15:53:15 +0000 (UTC) From: David Howells To: Marc Dionne Cc: David Howells , linux-afs@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] afs: Miscellaneous small fixes Date: Thu, 16 Nov 2023 15:53:07 +0000 Message-ID: <20231116155312.156593-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Thu, 16 Nov 2023 07:53:36 -0800 (PST) Hi Marc, 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 server doesn't handle exclusive locks on such files. (5) Not a fix per se, but set SB_RDONLY on superblocks for RO and Backup volumes so that the VFS can see that they're read only. The patches can be found here: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=afs-fixes Thanks, David 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(-)