Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp350369pxf; Wed, 17 Mar 2021 06:50:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoNqS5hd6VVOmoDjV5ELqIzfxGPoaZ0fE1zwkgXWg7yaLWBQzqM03FG9ek8+j8XKvYQkln X-Received: by 2002:a17:906:b20b:: with SMTP id p11mr36106234ejz.0.1615989051292; Wed, 17 Mar 2021 06:50:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615989051; cv=none; d=google.com; s=arc-20160816; b=aopWJyx4M1cItu32P2DmXT5qd+duh97jArN8qctHm5w1pLDHu0ouqKCn53UPpcWVqR wJglPARgIDiKWj3++kja8Pb6xImHqL5qfaYhI4Q29Lc38g0yKstj+PCso+TGK/1H/N4Z 9/7y3VtdhDSBudKl3K7NBuEYPCvxhycRUIAbJTHnXv88NIYgeWCR97Z1zSU26HkTp/iX MfM4b+H94oz+9W+eYbIvH16StluJ1NGh19zOR9XKk8PP/IGdRxHh7YyRj3y54xkQly80 dNKs1hxUysQqgPHPaJOeRzEH12xGebgqAJa0Ns7pca8B4KAMIkaVd+GXfIyFImKdlEvm vKCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=X0Kd/gVFWEpxhzoIaYRw9w3BiHsoDUdiQGPAy++5+UQ=; b=z6dBb0r4h6iWiEXpCnw21tqzfPsqi77w/vnrAozCHwZHW7KVULahy2LsSMZoS0L8WW irRjK29ags0mxdfM1kcVr2ufivk03NZJJLcGgm0JvBQIzWxxFu1fcN+IQeuNjddIFgwO sF733BwHA/x/874T/FKDI2gJXIM7atAa1TYDP9NHc5YpIoxLC9so+nrfDQfACjjLFPqc /+v36VBt3SCpfhYqowFJJ6LJ43fVLe6Bx2YeGimh5b9cIORzObY1fbgkaQ3NiEq+Q9Ur /XWY8y4biIidj8luqppS+TzmcemloxJz/jmF2Q+XCYBz9Qel1TT4PKYE/PzGcHvcFDH5 PzKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uIskyRGO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si15607073edv.439.2021.03.17.06.50.28; Wed, 17 Mar 2021 06:50:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uIskyRGO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231266AbhCQNs1 (ORCPT + 99 others); Wed, 17 Mar 2021 09:48:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231391AbhCQNsE (ORCPT ); Wed, 17 Mar 2021 09:48:04 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5368DC06174A; Wed, 17 Mar 2021 06:48:04 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id kr3-20020a17090b4903b02900c096fc01deso1371926pjb.4; Wed, 17 Mar 2021 06:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=X0Kd/gVFWEpxhzoIaYRw9w3BiHsoDUdiQGPAy++5+UQ=; b=uIskyRGOQTlGpH9G9n0ufXVvvPLqC9vsJNQKEhkHb2ej8r6vK++4thbru0d5D+QBeE ixQqlK3cAE5+XwasutWgXtGQXX+LTJR5xrpkLMzqzNX2a2U37xvZpZukPDaAMVk63zv4 nbLIytQQ2ef3aZZIFmXNFle1RgynEG83AWhRB38m8ujPpAs2LyF+Oj+HYvHeFTlv0lvb TwlsAN0h3i9Ldhxf05IuCtROayDpt+8AxQgL1gcpAPdmQgkJb3UIPTQR80ZIXJueMAI8 istajSi+A7n0//RPZzRWRmBen3lKrCJIk1T3Rx7zt0kp1gd/Wccpyn9M4KMwWlqiPrNr xezA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=X0Kd/gVFWEpxhzoIaYRw9w3BiHsoDUdiQGPAy++5+UQ=; b=LP6UbVzLk3kPKtJTdD9cu6Mk/nYFKPNCXov5zXMpiCypek86IrpIFuFQwB0+6u7P85 uqatvhzoA7z07oVXFSBMgrx+PXMB45mXrHBIktRyZILFWRx2Yb8XWIqPCIU5p1Te+Jaa 34dzPEZhfF4pW6aiHEbtxoWzTpIRRq2hTE2vOWc1U1ZjQsIj/zNqA9CdjGWbZkzvbgpl 5+7awhZ8lbR8S61ITF9QzLNpNjqzAyJCaY3IXH+wMcRIufwGsv8vRgYEV5w6iltYSprJ hCmvs6YXtIoFSCareaOTYqc2yKMiOi2p6WzABIzrGaB0rqpG0upyz9eMq4RgGjsLmlSF 8i/w== X-Gm-Message-State: AOAM531jgGuuu/Mvpboo6uSZJxkMF/T7fSCsNvki7DwBPRdX7c+kffh/ BWLHAF7hID4PCO1z0+LFhsWZwRs/IVO3Aj6jNOICSu7uJOMNtg== X-Received: by 2002:a17:90a:cb8c:: with SMTP id a12mr4906594pju.35.1615988883923; Wed, 17 Mar 2021 06:48:03 -0700 (PDT) MIME-Version: 1.0 References: <20210316124808.11984-1-vincent.whitchurch@axis.com> <93d506a6-5832-5006-3bab-6e8e7203da0e@talpey.com> <4836330b-3d2f-9d35-4d03-3a457b0068a4@talpey.com> In-Reply-To: <4836330b-3d2f-9d35-4d03-3a457b0068a4@talpey.com> From: Rohith Surabattula Date: Wed, 17 Mar 2021 19:17:52 +0530 Message-ID: Subject: Re: [PATCH v2] cifs: Silently ignore unknown oplock break handle To: Tom Talpey Cc: Vincent Whitchurch , Steve French , linux-cifs , kernel@axis.com, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/16/2021 1:36 PM, Rohith Surabattula wrote: >> This issue will not be seen once changes related to deferred close for >> files is committed. >That may be, but it's irrelevant to this. Got it. >> Currently, changes are in review. I will address review comments by this week. >What do you mean by "in review"? Both threads are active on the >mailing list. If you or others have something to discuss, please >post it and don't leave us out of the discussion. I mean, there is an active thread for patch "deferred close for files". As I was busy with other activities, I didn't update the thread. Will update the thread once i get to it. Regards, Rohith On Wed, Mar 17, 2021 at 12:59 AM Tom Talpey wrote: > > On 3/16/2021 1:36 PM, Rohith Surabattula wrote: > > This issue will not be seen once changes related to deferred close for > > files is committed. > > That may be, but it's irrelevant to this. > > > Currently, changes are in review. I will address review comments by this week. > > What do you mean by "in review"? Both threads are active on the > mailing list. If you or others have something to discuss, please > post it and don't leave us out of the discussion. > > Tom. > > > > Regards, > > Rohith > > > > On Tue, Mar 16, 2021 at 9:33 PM Tom Talpey wrote: > >> > >> On 3/16/2021 8:48 AM, Vincent Whitchurch via samba-technical wrote: > >>> Make SMB2 not print out an error when an oplock break is received for an > >>> unknown handle, similar to SMB1. The SMB2 lease break path is not > >>> affected by this patch. > >>> > >>> Without this, a program which writes to a file from one thread, and > >>> opens, reads, and writes the same file from another thread triggers the > >>> below errors several times a minute when run against a Samba server > >>> configured with "smb2 leases = no". > >>> > >>> CIFS: VFS: \\192.168.0.1 No task to wake, unknown frame received! NumMids 2 > >>> 00000000: 424d53fe 00000040 00000000 00000012 .SMB@........... > >>> 00000010: 00000001 00000000 ffffffff ffffffff ................ > >>> 00000020: 00000000 00000000 00000000 00000000 ................ > >>> 00000030: 00000000 00000000 00000000 00000000 ................ > >>> > >>> Signed-off-by: Vincent Whitchurch > >>> --- > >>> > >>> Notes: > >>> v2: > >>> - Drop change to lease break > >>> - Rewrite commit message > >>> > >>> fs/cifs/smb2misc.c | 2 +- > >>> 1 file changed, 1 insertion(+), 1 deletion(-) > >>> > >>> diff --git a/fs/cifs/smb2misc.c b/fs/cifs/smb2misc.c > >>> index 60d4bd1eae2b..4d8576e202e3 100644 > >>> --- a/fs/cifs/smb2misc.c > >>> +++ b/fs/cifs/smb2misc.c > >>> @@ -755,7 +755,7 @@ smb2_is_valid_oplock_break(char *buffer, struct TCP_Server_Info *server) > >>> } > >>> spin_unlock(&cifs_tcp_ses_lock); > >>> cifs_dbg(FYI, "Can not process oplock break for non-existent connection\n"); > >>> - return false; > >>> + return true; > >>> } > >>> > >>> void > >>> > >> > >> As an oplock-only approach, it looks good. But the old cifs_dbg message > >> "non-existent connection" is possibly misleading, since the connection > >> may be perfectly fine. > >> > >> When breaking the loop successfully, the code emits > >> cifs_dbg(FYI, "file id match, oplock break\n"); > >> so perhaps > >> cifs_dbg(FYI, "No file id matched, oplock break ignored\n"); > >> ? > >> > >> Tom. > >