Message ID | 20231116155312.156593-1-dhowells@redhat.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp3303276vqg; Thu, 16 Nov 2023 07:54:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHtAaeVJgLbND1UMSjYNRdtqocchgsTfcCryc0H8J1OUzZ7JQHknBvL3QphcwRviZeXERW7 X-Received: by 2002:a17:902:e74a:b0:1cc:e76e:f214 with SMTP id p10-20020a170902e74a00b001cce76ef214mr9964476plf.29.1700150047069; Thu, 16 Nov 2023 07:54:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700150047; cv=none; d=google.com; s=arc-20160816; b=Q9zMsCe/APLqBrUJqxRG/r19RW7nlZeslW9nDo+7YjdFPtrx0DvaZTlwCljLLuFEr+ 65x4NKiOHTCxxXB2PuVxKvIYdw6keFAO7c+KTB6H/f4q3q+0R9JgwEwx9+egtneOR8B/ 7LUITJ1x9v17WIyiaZol1pJVTCWhc7/Vxlx0wAOMf2diQ18kvnRSq6DSzwJ95mEAIFUb w4wGeZGFZpnTVmUU022r9+r3Os12UYTbtjVpsdaKN4otRI52C6RgMOaS/v6a7P8rII6u GBnH2xPgMG7dfhDIuAP5TnSmXYsj0komGG6jg/NrUvjt+5SY6WucyiPt5V2Z1UwqGb0A ByrA== 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 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id h14-20020a170902680e00b001c752577582si12101717plk.359.2023.11.16.07.54.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 07:54:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; 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 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 4935180A0DE5; Thu, 16 Nov 2023 07:54:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345368AbjKPPxY (ORCPT <rfc822;jaysivo@gmail.com> + 30 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <dhowells@redhat.com> To: Marc Dionne <marc.dionne@auristor.com> Cc: David Howells <dhowells@redhat.com>, 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 fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 16 Nov 2023 07:54:00 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782736535647493843 X-GMAIL-MSGID: 1782736535647493843 |
Series |
afs: Miscellaneous small fixes
|
|
Message
David Howells
Nov. 16, 2023, 3:53 p.m. UTC
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(-)
Comments
On 11/16/2023 10:53 AM, David Howells wrote: > 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(-) Reviewed-by: Jeffrey Altman <jaltman@auristor.com>