From nobody Wed Oct 8 07:24:27 2025 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 1297927EFF7 for ; Tue, 1 Jul 2025 16:39:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751387987; cv=none; b=YQQBz+XNJbsfwTjLpPgba3AznaSobRVoISqMBSj69UBmITLiGHRj9JDAX3JC/+5Y4csMWOS/6WP+xDdzjRFugPtit4Bkdx3TLW5zmKJqQDoaLznTfKQOncB2LMAjrDAyS2shTi32G6P7zcAhXzEWI3zBN5tbSf7c3icuw6vn77Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751387987; c=relaxed/simple; bh=Ai/gf3uGkLRLoXka8lUFvs/gDdKfo7rbbnzJr3GKMgg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=e+J7qUb8cxLdhoScRE2jvXip0VuneRoK+2JFJdAofiKge7h/Nhp1Bn0GV8fTueIxQ8a30XowrhcAK2+nSsyKIjMIScR6NbhW4sWqelxWO00X1Banz7PgLYZE5tf+QQi34eu9uqZ8D1vu3kHzfC3pt6Lf8EFJLs3jbJf6OqkVZVI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=RGPJULci; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="RGPJULci" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1751387985; 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: in-reply-to:in-reply-to:references:references; bh=foPbgornqT4ubp6e+8XgYiPshzBkLnc0dUVl3cCX6A0=; b=RGPJULcigdJ11LFUXSdBJxPNudUYHH7On7GTaWVtLjWKukusp2OMRXdikgV502s+ElB/hh 7Os9L16KF9dp1fugs5hpfRBd5OVOEJWuSbnGmHb+3dSkuZIUvFyAObTuTIjNtNciNdKpd9 0X5Wu04bn2lGEik5asuIOaR7Ft04COQ= Received: from mx-prod-mc-04.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-618-l2A0ZYtrMX2-pPI2DVaFqw-1; Tue, 01 Jul 2025 12:39:42 -0400 X-MC-Unique: l2A0ZYtrMX2-pPI2DVaFqw-1 X-Mimecast-MFC-AGG-ID: l2A0ZYtrMX2-pPI2DVaFqw_1751387980 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [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-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7BBA319373D7; Tue, 1 Jul 2025 16:39:40 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.81]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 35A091956048; Tue, 1 Jul 2025 16:39:37 +0000 (UTC) From: David Howells To: Christian Brauner , Steve French Cc: David Howells , Paulo Alcantara , 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-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Paulo Alcantara Subject: [PATCH 08/13] smb: client: set missing retry flag in cifs_writev_callback() Date: Tue, 1 Jul 2025 17:38:43 +0100 Message-ID: <20250701163852.2171681-9-dhowells@redhat.com> In-Reply-To: <20250701163852.2171681-1-dhowells@redhat.com> References: <20250701163852.2171681-1-dhowells@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Content-Type: text/plain; charset="utf-8" From: Paulo Alcantara Set NETFS_SREQ_NEED_RETRY flag to tell netfslib that the subreq needs to be retried. Fixes: ee4cdf7ba857 ("netfs: Speed up buffered reading") Signed-off-by: Paulo Alcantara (Red Hat) Signed-off-by: David Howells Tested-by: Steve French Cc: linux-cifs@vger.kernel.org Cc: netfs@lists.linux.dev --- fs/smb/client/cifssmb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/smb/client/cifssmb.c b/fs/smb/client/cifssmb.c index f9ccae5de5b8..0e509a0433fb 100644 --- a/fs/smb/client/cifssmb.c +++ b/fs/smb/client/cifssmb.c @@ -1715,6 +1715,7 @@ cifs_writev_callback(struct mid_q_entry *mid) break; case MID_REQUEST_SUBMITTED: case MID_RETRY_NEEDED: + __set_bit(NETFS_SREQ_NEED_RETRY, &wdata->subreq.flags); result =3D -EAGAIN; break; default: