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: 1988624 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=f7/kRD7O; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=139.178.88.99; helo=sv.mirrors.kernel.org; envelope-from=linux-cifs+bounces-2870-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [139.178.88.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XC5wN5nZWz1xsn for ; Tue, 24 Sep 2024 01:08:20 +1000 (AEST) 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 25C4E281D91 for ; Mon, 23 Sep 2024 15:08:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81B31199FA9; Mon, 23 Sep 2024 15:08:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="f7/kRD7O" X-Original-To: linux-cifs@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF5A414A08D for ; Mon, 23 Sep 2024 15:08:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727104095; cv=none; b=QNCOeJaTNub51dvwnFiYI4m+CZR01I+1WkUdzYwdjtrA79OIm1FTi3mJqkylgUHrZHtjtQl15bEyOnCpQSQYMgaoRn7SAkgh/YTcK2jFcGBT2E02ZL4/JzvMs1KGLhDQ55k7NcUnrq35+wBms9P3dfvWwbntXFK7+LhEEF1w2I0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727104095; c=relaxed/simple; bh=/GNlxMRLpq91WxvczmAyf92nZZLDG814e6S03oDyT64=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=olXlpWIesFw8CGlLGiCxnXtN85OtfV8emfq2uVutJGVWvmE0D49KyI/rBuoZXWlbGoIi+vCrWTmNr3HVyEui5jE5e9EOhOzVovQljjFtCS4NSBYCErrcxbIfEZJwnHWZHlExiWgF56ZER9MbDTA3CttCqbGMbstYUhC3Uqr/2Ow= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=f7/kRD7O; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com 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> Precedence: bulk X-Mailing-List: linux-cifs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 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(-)