From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C816DC282D7 for ; Sat, 2 Feb 2019 11:34:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9604820869 for ; Sat, 2 Feb 2019 11:34:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549107273; bh=BDSz/7QvDYksbEQFtwwbZ99u3/IPIGYxyK/Mu/LxRTc=; h=Subject:To:Cc:From:Date:List-ID:From; b=E/FW6jIU+wSr/gqdHPkhmzbUXcIdchc9673Y1Iq5k46BpQZDFk4+tofd9YmJiohhr zsy06BGdmr25yzpw1La9/76PHowITK1aSgcnQXqBbMH0gbbfNnC3aBFQJXUE4qdioM yw0W7o8n6cWt7gws52yYSSo/z/L3WufoaivZLZd4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726808AbfBBLed (ORCPT ); Sat, 2 Feb 2019 06:34:33 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:57973 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726678AbfBBLed (ORCPT ); Sat, 2 Feb 2019 06:34:33 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 39F2B2147B; Sat, 2 Feb 2019 06:34:32 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 02 Feb 2019 06:34:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ICTgw8 sOcQeNNMecW1rJ2PvCN1r/NtMY5al6tCezhDA=; b=XqoPAuHTrq2kvXCMmkNAbp gHsz9Zj+4JILISlR0vjaAjkCmI/z2LipMhlF0QgABP3ZO3rgFiFMj68bG/uFH6/T jQYT0n5ucOwQAbeO0NrLqXoXw+UTOA91e5fziT3CIWE+S7ON73lbqduPv3jCXxwx 4wPBMioMvlPnVjN9D7jaVjcgCeZucHjKuEoPPrDa1yDu1hyIZpiXrWcZuG14WveC 2UgMoXRih5utQH2qWwUucSW+utIz/nSh45NzGPUjtGF/FMTXVjOap5iofUmVHPNp dU6/RYgxSA+k31hD+HWYd+PS9iQO5BwB1vjZbbSbBGUeHXsttxWMTM16SrFEyFtQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrkedtgdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucenucfjughrpefuvffhfffkgggtgfesthekredttddtlfenucfhrhhomhepoehgrh gvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhrgheqnecukfhppeekfedrkeei rdekledruddtjeenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrd gtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from localhost (5356596b.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 9A83BE4068; Sat, 2 Feb 2019 06:34:31 -0500 (EST) Subject: FAILED: patch "[PATCH] CIFS: Do not consider -ENODATA as stat failure for reads" failed to apply to 4.19-stable tree To: pshilov@microsoft.com, stable@vger.kernel.org, stfrench@microsoft.com Cc: From: Date: Sat, 02 Feb 2019 12:34:30 +0100 Message-ID: <1549107270220186@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 4.19-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 082aaa8700415f6471ec9c5ef0c8307ca214989a Mon Sep 17 00:00:00 2001 From: Pavel Shilovsky Date: Fri, 18 Jan 2019 15:54:34 -0800 Subject: [PATCH] CIFS: Do not consider -ENODATA as stat failure for reads When doing reads beyound the end of a file the server returns error STATUS_END_OF_FILE error which is mapped to -ENODATA. Currently we report it as a failure which confuses read stats. Change it to not consider -ENODATA as failure for stat purposes. Signed-off-by: Pavel Shilovsky Signed-off-by: Steve French CC: Stable diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index d858dc04fdc3..ef52d6642431 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -3241,7 +3241,7 @@ smb2_readv_callback(struct mid_q_entry *mid) rdata->mr = NULL; } #endif - if (rdata->result) { + if (rdata->result && rdata->result != -ENODATA) { cifs_stats_fail_inc(tcon, SMB2_READ_HE); trace_smb3_read_err(0 /* xid */, rdata->cfile->fid.persistent_fid,