Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4465976pxf; Tue, 16 Mar 2021 14:22:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9mEn1R24/oGXq5imWtxNEE655sXYYfv3lX10KpafM4E5MwMF4OoYiUKxA5ouhI9z80TkL X-Received: by 2002:a17:906:c9c2:: with SMTP id hk2mr32169073ejb.244.1615929772048; Tue, 16 Mar 2021 14:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615929772; cv=none; d=google.com; s=arc-20160816; b=KLWlM3fjVjFKgBaVi1My2VZqR2eWCrDtNmw8eg8W0qOWyU5rEpmLcx4jJMGGQHHrmC MHqrsGxy9vkQiNYMDNIz3poy4by9qPP/oEqyuk/X57hmimv/5J9qBRYW6VPpKCe6tNPy AKRvPqQ5Vs0MM65tC6Dv6dZ4r/aFGJgIbO7y41+k5DeVK4jBRjkpGJaJ9JFZSNXIVq6m lrMPM2PBwVo1wIVtfaWHSr5+s98G7fIawAxGZOZmdUvxNVqwMsmVkFS8bQ5UfI4g8YUt hDbVaBOcAilVjYeeVzARUMHC5oSMXvtTnoMzhuGhBXQ56v8HqePhbr7stqeTl3dEQ/4q lk6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=7OiCi80y2WuBz4nxLbRfr9nUjiMz4B+568j2Ymu5SHg=; b=Hhit5Qy2GRGFS6y5xgGCqTVRSsd2Tj8okoF8UNBwoqMrZwHd13NX1ixWTicABDBQAB 7c9z3MEPBZod5INARoWjDsO5vz0njg2Qs3jtb2zXXwX0CUCMn1qZY9YRe46hoWpFHwBO rAQ0LDZriipJGI6GR7N5TMI11gRdyQVov/AGUTU8hfp+VRnDKNrW8wDGNOoVYzd42vxB 7EtGZuiDolcGvenHlSYZp2vF3mti17Y2MM8zriXcl2Fz3enS/Yvc9bACDDKDv7mQwg5Z lbOYMyauazcjkaWurt69PKtxMFCvuA++80PooaJ6JutD1kL/ZgKr6wR9+yFM+nFklxmZ Maxw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ku22si14248252ejc.704.2021.03.16.14.22.29; Tue, 16 Mar 2021 14:22:52 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240456AbhCPT3p (ORCPT + 99 others); Tue, 16 Mar 2021 15:29:45 -0400 Received: from p3plsmtpa06-02.prod.phx3.secureserver.net ([173.201.192.103]:46882 "EHLO p3plsmtpa06-02.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240454AbhCPT3l (ORCPT ); Tue, 16 Mar 2021 15:29:41 -0400 Received: from [192.168.0.116] ([71.184.94.153]) by :SMTPAUTH: with ESMTPSA id MFNplOVBiBt9YMFNqlPnBL; Tue, 16 Mar 2021 12:29:38 -0700 X-CMAE-Analysis: v=2.4 cv=C/0sdSD+ c=1 sm=1 tr=0 ts=60510723 a=vbvdVb1zh1xTTaY8rfQfKQ==:117 a=vbvdVb1zh1xTTaY8rfQfKQ==:17 a=IkcTkHD0fZMA:10 a=SEc3moZ4AAAA:8 a=3-RhneuVAAAA:8 a=ihd_uDuFnh7xnqKYafAA:9 a=QEXdDO2ut3YA:10 a=5oRCH6oROnRZc2VpWJZ3:22 a=VLVLkjT_5ZicWzSuYqSo:22 X-SECURESERVER-ACCT: tom@talpey.com Subject: Re: [PATCH v2] cifs: Silently ignore unknown oplock break handle To: Rohith Surabattula Cc: Vincent Whitchurch , Steve French , linux-cifs , kernel@axis.com, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org References: <20210316124808.11984-1-vincent.whitchurch@axis.com> <93d506a6-5832-5006-3bab-6e8e7203da0e@talpey.com> From: Tom Talpey Message-ID: <4836330b-3d2f-9d35-4d03-3a457b0068a4@talpey.com> Date: Tue, 16 Mar 2021 15:29:38 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfH6b3PF8QhOqJznv110kIMK+CLaMTn7+5O8zIx0dZa9FNVemvhe0/KfPSyC510OhKOT9JghaMrb3qjtoVCjYAbpoOKhULCOq4cAsrLRbuKdXuHRyeyuA rWj1QAdjnkSU1QN18U2+Insf4dP+C0yHalejORzzgacQEAKJgsg1VI0+mS9mUCnM81Gv6Eb2Zz0cf318OBRDEOlKClrzutpWnHcjZQCtjcwAsifRoSld21to CBxGGxyfajqvxaB6jK2FcXl9Unqc9fmvODToXzyEt70KolifOWp5ynQ6jSFY5mky0cUf5XJiM0fpCa5k9PfzsIl5WxpLRnTpGt675sBCTomtbmMrPJaBCBZp /aismpvUmDzumrOQkNOU09rvy0ea6/apTwWrKclr9yEbmsU5RSFs5nWWZ1J4oHDwQUNbcSoG 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. > 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. >