From patchwork Mon Sep 23 15:07:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 13809699 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD6A7CF9C6F for ; Mon, 23 Sep 2024 15:08:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 283836B007B; Mon, 23 Sep 2024 11:08:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 233C86B0083; Mon, 23 Sep 2024 11:08:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0FB766B0085; Mon, 23 Sep 2024 11:08:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id E56C36B007B for ; Mon, 23 Sep 2024 11:08:15 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 42281813BA for ; Mon, 23 Sep 2024 15:08:15 +0000 (UTC) X-FDA: 82596333750.18.46745E3 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf01.hostedemail.com (Postfix) with ESMTP id 855D640020 for ; Mon, 23 Sep 2024 15:08:13 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="f7/kRD7O"; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf01.hostedemail.com: domain of dhowells@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727104006; a=rsa-sha256; cv=none; b=A/yanKVe5632j70TARHcsOcemDQVaRc/OspqpDQOgzRM9K2u7sfI+tISHpqCKD9R4Lzemd aT3KpuIOiyrYmhpF+DuAvP6hl2je2zHqeNAp13+ZH97WxgzEja7ZPht7NBhJKKmKoqX1+l umRGrnHspScrpK4iE1Z5dk9GTaXamCU= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="f7/kRD7O"; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf01.hostedemail.com: domain of dhowells@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727104006; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=deDp5fXNcCneGmSM6E3aF14XvR7SODlrONWVXGCHh5M=; b=HClS0zZvDyme4j0zTVc4Z2pEyQLet2zlAVwe6LcnYN40t/Jx7CprSHk0CR5pedsiDKRBk5 +g0HDGnQJGjQ66VHfliDM9XZJ0XhteioBJykLqUSJkey4szm5b+RUd/P6J9foXuYYjs0dT r0l7DBzFiBel8mcr91zYrPvjJsNVH/M= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1727104092; 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=deDp5fXNcCneGmSM6E3aF14XvR7SODlrONWVXGCHh5M=; b=f7/kRD7OLgy0pb9KuzqITI7oqFNwCTa3L/WSOB5Czns3Qo+yh+WPYn3RTv2rrPsFVRj3tA eBFqg6E6ewNH/QtCjtsQK71BN0gYmW3+zlF200WJsWphRmWt/P9HKccPHPskDYPR6uKxYb wv+lysuctbb8XQGGHJs+PY1MI3PoXa8= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-581-4y-C8U9DPSq2ZrlXAofqpQ-1; Mon, 23 Sep 2024 11:08:09 -0400 X-MC-Unique: 4y-C8U9DPSq2ZrlXAofqpQ-1 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (unknown [10.30.177.17]) (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 mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 29E0C18EB2E2; Mon, 23 Sep 2024 15:08:06 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.145]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1ACE8194328E; Mon, 23 Sep 2024 15:07:59 +0000 (UTC) From: David Howells To: Christian Brauner , Steve French , Marc Dionne Cc: David Howells , Paulo Alcantara , Jeff Layton , Matthew Wilcox , netfs@lists.linux.dev, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs@lists.linux.dev, linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/8] netfs, afs, cifs: Miscellaneous fixes/changes Date: Mon, 23 Sep 2024 16:07:44 +0100 Message-ID: <20240923150756.902363-1-dhowells@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Rspamd-Queue-Id: 855D640020 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: cucq7imqxrz6fdamhuwfh7kcpgejeo3p X-HE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XtKZwSPlgV3QZ4sbvyrR607YTnTdYeSbjcMoFlr2MM6GqE9p0m+mSUALsXXb5RpZMUXrbio6xhur5p9S/c7EjUGf7sCKbhM1Gt0IXaLIfmYTBcHESE3oNnYb++TvVeqjIQW8SqJdyK582YGn21au94Ntq8dlQ9JBSaHDLCQvfNzJ5taVNztITZkpCVa1E9qqQD8jqoJT2F4Utl2lh54HLRo+yY6nTWvhPrF4Ar3ZY5EojgS9Yi2JXsLRxstMgiShzujkE3824EnxfqgliW+/M= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi Christian, Steve, Marc, Here are some miscellaneous fixes and changes for netfslib and the afs and cifs filesystems, some of which are already in the vfs or cifs trees, but I thought I'd repost them all for completeness, starting with netfs: (1) Fix the update of mtime and ctime for mmapped files. (2) Drop the was_async argument from netfs_read_subreq_terminated(). then afs: (3) Wire up afs_retry_request() so that writeback rotates through the available keys. (4) Remove some unused defs. (5) Fix a potential infinite loop in the server rotation code. (6) Fix an oops that can occur when a server responds, but we decide the operation failed (e.g. an abort). and then cifs: (7) Fix reversion of the I/O iterator causing cryptographically signed transport reception to fail. (8) Alter the write tracepoints to display netfs request info. The patches can also be found here: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=netfs-fixes Thanks, David David Howells (6): netfs: Fix mtime/ctime update for mmapped writes netfs: Drop the was_async arg from netfs_read_subreq_terminated() afs: Fix missing wire-up of afs_retry_request() afs: Fix the setting of the server responding flag cifs: Fix reversion of the iter in cifs_readv_receive(). cifs: Make the write_{enter,done,err} tracepoints display netfs info Marc Dionne (1): afs: Fix possible infinite loop with unresponsive servers Thorsten Blum (1): afs: Remove unused struct and function prototype fs/9p/vfs_addr.c | 3 +- fs/afs/afs_vl.h | 9 ---- fs/afs/file.c | 16 ++++--- fs/afs/fs_operation.c | 2 +- fs/afs/fs_probe.c | 4 +- fs/afs/fsclient.c | 2 +- fs/afs/rotate.c | 11 +++-- fs/afs/yfsclient.c | 2 +- fs/ceph/addr.c | 13 ++++-- fs/netfs/buffered_read.c | 16 +++---- fs/netfs/buffered_write.c | 1 + fs/netfs/direct_read.c | 2 +- fs/netfs/internal.h | 2 +- fs/netfs/objects.c | 17 ++++++- fs/netfs/read_collect.c | 95 ++++++++++++++++----------------------- fs/netfs/read_retry.c | 2 +- fs/nfs/fscache.c | 6 ++- fs/nfs/fscache.h | 3 +- fs/smb/client/cifssmb.c | 10 +---- fs/smb/client/connect.c | 6 +-- fs/smb/client/file.c | 3 +- fs/smb/client/smb2ops.c | 9 ++-- fs/smb/client/smb2pdu.c | 32 ++++++------- fs/smb/client/trace.h | 6 +-- fs/smb/client/transport.c | 3 -- include/linux/netfs.h | 7 ++- 26 files changed, 139 insertions(+), 143 deletions(-)