Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2561625pxb; Tue, 9 Mar 2021 05:51:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtOiptD9Fb4bM1TIZyNqWMN7mjuuM6ri5aBfRzX6l0Tiftofst+wV+DCUEKiududB37/eN X-Received: by 2002:a50:da4f:: with SMTP id a15mr4125963edk.301.1615297885871; Tue, 09 Mar 2021 05:51:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615297885; cv=none; d=google.com; s=arc-20160816; b=RbHVTbNVx1qTvYi0VBuWNziWEOrOWz7ePkPFK1Em6UUpmf8ghzilpwJKau4X7pe9Wl HdSHYS/W8O4gioTk2r9ONbnt4PaS3Hbh0aa5dwQSLRTzwStmPIw6R/fS1E3CcioQcPy7 VGVBYTxPYf9mr1t5fUNJmOWlUg92cOq2CLpR0kTD0L6kL3fb7EX/d+3jem2V6rAjfG7X UQRLzmyBcZOwjalJuOEFr1DftXAAaBXyJct/Nfrbm4raWWD1B3G5bCQ24o/xJytq4rll ZJZm9MDjgpWHAdHQWCzwJE/Ta0PyLvCNWgwVtbs5V33wzSiyKJLGKaDycdERJ58Dsawy OfNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IX5Ccrifhwn+TfdveaPZcVPwzE7RzbHoY8Z21/LsAAI=; b=b3+dwC9xpvpiGzMuQljs9Xx9vZEF474jP6CKe3Chr7+lxT8iRu0Rb5LEFZqzaiRUQ4 1mwOElquEgI9ysZc7LNxIw0ybvgmOLOauQWz4x86U76Ir1C9PenFOXdL1gqgbSVxxdBv u74YpqegR3SfZXnkyMrXlLZ7i22eHpYboibAOWuM75UuyjrrMO4Gq7wLUpbhWUNAR7OX d8xW3vSf1Y7Vecy/OCCylz2KnpaX/P+ODzWIRVmKjWmd54/2X3r80fNP5A2Vy23+bjfg IxyvDACVIytKLtSH/X/lLg0L5cV6jn0p2cZSM3+9vyOcEjzxb37Br03p9fd/r1QiRrJf yvyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=MhYOhJI9; 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=NONE dis=NONE) header.from=axis.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p12si9303119ejm.633.2021.03.09.05.51.03; Tue, 09 Mar 2021 05:51:25 -0800 (PST) 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 (test mode) header.i=@axis.com header.s=axis-central1 header.b=MhYOhJI9; 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=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231699AbhCINtK (ORCPT + 99 others); Tue, 9 Mar 2021 08:49:10 -0500 Received: from smtp1.axis.com ([195.60.68.17]:26741 "EHLO smtp1.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231366AbhCINsa (ORCPT ); Tue, 9 Mar 2021 08:48:30 -0500 X-Greylist: delayed 430 seconds by postgrey-1.27 at vger.kernel.org; Tue, 09 Mar 2021 08:48:29 EST DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1615297710; x=1646833710; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=IX5Ccrifhwn+TfdveaPZcVPwzE7RzbHoY8Z21/LsAAI=; b=MhYOhJI99KpekbU9DwCBnzGztZIYDbbJfLD0G8hreO8f5942rvbX0yHh aTs5n3wqJE5YTxUdHpjkhP12/ixRLUTF6UZ0/8fhEqEcRvY6DBbQNDGrR Z4Zq5u66JehjUURYeNycDFYPWClyRJtxXOr9DtFYUH43idfFSiXiT7lMc lwOkhFgFPIcKCWph+ZoiiH9kzAgcaOG2mnsHzV2Dxz8kbztyOlQXNCsn2 DlSoG+m+C3IhpVLVBWuP0D2ofP3I8EKEejVBwY+mCyqAn3ptswqa0ZRNl 7AFwuizTZw/Umy/kv2+D5QY9pyAj25UDbZZws353bdvuZ3Cu0AnDHJ4RU g==; Date: Tue, 9 Mar 2021 14:41:18 +0100 From: Vincent Whitchurch To: ronnie sahlberg CC: Shyam Prasad N , CIFS , samba-technical , LKML , Steve French , kernel , Pavel Shilovsky Subject: Re: [PATCH] CIFS: Prevent error log on spurious oplock break Message-ID: <20210309134118.GA31041@axis.com> References: <20210305094107.13743-1-vincent.whitchurch@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 09, 2021 at 01:05:11AM +0100, ronnie sahlberg wrote: > On Sun, Mar 7, 2021 at 8:52 PM Shyam Prasad N via samba-technical > wrote: > > The reason for rejecting the request maybe a number of things like: > > corrupted request, stale request (for some old session), or for a > > wrong handle. > > I don't think we should treat any of these cases as a success. > > I agree with Shyam here. > We shouldn't change the return value to pretend success just to > suppress a warning. Thank you all for your comments. I see that everyone agrees that the error print is useful for SMB2, so I will drop this patch. > However, if it is common to trigger with false positives we might want > to something to prevent it from > spamming the logs. > These messages could be useful if we encounter bugs in our leasing > code, or bugs in server > lease code, so we should't throw them away completely. But if false > positives are common ... > > Some thoughts I and Stever brainstormed about could be to change the code in the > demiltiplex thread where we currently dump the packets that were "invalid" > to maybe: > * log once as VFS and then log any future ones as FYI > * log once as VFS and then only make the others available via dynamic > trace points > * rate limit it so we only log it once every n minutes? (this is overkill?) Thank you for the suggestions. In my case, I've only received some reports of this error being emitted very rarely (couple of times a month in our stability tests). Right now it looks like the problem may only be with a particular NAS, and we're looking into triggering oplock breaks more often and catching the problem with some more logging.