Message ID | 1549051452-5968-4-git-send-email-pshilov@microsoft.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-cifs-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5876E14E1 for <patchwork-cifs-client@patchwork.kernel.org>; Fri, 1 Feb 2019 20:04:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4877B32C9E for <patchwork-cifs-client@patchwork.kernel.org>; Fri, 1 Feb 2019 20:04:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A36E330BE; Fri, 1 Feb 2019 20:04:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8DA432C9E for <patchwork-cifs-client@patchwork.kernel.org>; Fri, 1 Feb 2019 20:04:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730552AbfBAUE1 (ORCPT <rfc822;patchwork-cifs-client@patchwork.kernel.org>); Fri, 1 Feb 2019 15:04:27 -0500 Received: from mail-pf1-f180.google.com ([209.85.210.180]:34467 "EHLO mail-pf1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729192AbfBAUE1 (ORCPT <rfc822;linux-cifs@vger.kernel.org>); Fri, 1 Feb 2019 15:04:27 -0500 Received: by mail-pf1-f180.google.com with SMTP id h3so3755071pfg.1 for <linux-cifs@vger.kernel.org>; Fri, 01 Feb 2019 12:04:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=wEN9Zfq0t0p2ho73CH7ACXTAx/Vq+AZR8Yd/ytQMKtY=; b=bCC6jOO/tOpL4iKNJPXGGIZFjPkjs+aA29CRwzX31xDZp8Hw7g+TD8ENgj1odUTZDg Y5RMiYnS0PxftUeQe4gYKaYEZxjqg/fkLFFStkOE8/jlPXwUiCaphVM6hfrnmkQa2NpN wilNpss4XYl0zYS22Mv0Ow+wJfCR8t891hBz0yzKKa0FMq5NoIP8RhveqquiDYwN3r2M LfUeaihIBrXdYuR/7p6US+5CEFK60C07rCFgwTiM3sWKGudcIdYPVCbeSX1JlG0wzWJn dxxEKyWvpGmmriMbpnfzH31kO1V/O711IEb/zTdBYc33K9k/r1RrU1aTnUhMWdC549ex c0zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=wEN9Zfq0t0p2ho73CH7ACXTAx/Vq+AZR8Yd/ytQMKtY=; b=OCBlXlAZth7OwXELTfpxRK7m9MgMxAO+OgXen/wil18zOtqvVxxY+moC99BUr5b1XQ oVTcs0claf5tGhCnjCUk/hOI0jHyr3TPqzmq4pQxxyqs4VxC1/ts5C9+wTimUMuEkdK2 hYFCZI+TWaqh8YQq4DoM/3rv+PpQuNhJlsiacsCZBGx4NyN0HjQ/Gt31C1cZieoBpFXf N4+551JGKhAFJjihCnnQLaO8RMdz9cxvcxGSqvzM1W60ZVCDHpd4UhCsYfYZ90Zvh+mh I2eBo0q+HoMuoKMhX7ZmpeQj2XKfgEm8jWzXOqhPv601JKmpmvkYNQS1Ek9OgKttX2MB T1mw== X-Gm-Message-State: AHQUAuZIZDOfsvEw3y90zepuWdiP9D4GCLntqf7T0Ympqkqt4h6xuJLZ Ee3l7ENKBN8Q7eSKmxZQN8lkmgA= X-Google-Smtp-Source: AHgI3Ia1WvXLl8V+yxAQsxb2gdQfi6R5BGFVLim70nEFJuguOc1/ciupgyx8F7y3O12B4jX2Pk1X+A== X-Received: by 2002:a63:4d0e:: with SMTP id a14mr3604664pgb.408.1549051465394; Fri, 01 Feb 2019 12:04:25 -0800 (PST) Received: from ubuntu-vm.corp.microsoft.com ([2001:4898:80e8:0:a18e:4e9f:6b7c:507d]) by smtp.gmail.com with ESMTPSA id x11sm24247451pfe.72.2019.02.01.12.04.23 for <linux-cifs@vger.kernel.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Feb 2019 12:04:24 -0800 (PST) From: Pavel Shilovsky <piastryyy@gmail.com> X-Google-Original-From: Pavel Shilovsky <pshilov@microsoft.com> To: linux-cifs@vger.kernel.org Subject: [PATCH 03/23] CIFS: Do not count -ENODATA as failure for query directory Date: Fri, 1 Feb 2019 12:03:51 -0800 Message-Id: <1549051452-5968-4-git-send-email-pshilov@microsoft.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1549051452-5968-1-git-send-email-pshilov@microsoft.com> References: <1549051452-5968-1-git-send-email-pshilov@microsoft.com> Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: <linux-cifs.vger.kernel.org> X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Improve credits and error handling on reconnects
|
expand
|
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 4b5ab9c..d858dc0 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -3845,8 +3845,8 @@ SMB2_query_directory(const unsigned int xid, struct cifs_tcon *tcon, rsp->sync_hdr.Status == STATUS_NO_MORE_FILES) { srch_inf->endOfSearch = true; rc = 0; - } - cifs_stats_fail_inc(tcon, SMB2_QUERY_DIRECTORY_HE); + } else + cifs_stats_fail_inc(tcon, SMB2_QUERY_DIRECTORY_HE); goto qdir_exit; }