From patchwork Fri Apr 7 11:29:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Germano Percossi X-Patchwork-Id: 9669331 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DCD32602B3 for ; Fri, 7 Apr 2017 11:30:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF2B9205F8 for ; Fri, 7 Apr 2017 11:30:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C3A3F285FF; Fri, 7 Apr 2017 11:30:13 +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=-6.9 required=2.0 tests=BAYES_00,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 0EEA3205F8 for ; Fri, 7 Apr 2017 11:30:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932598AbdDGLaL (ORCPT ); Fri, 7 Apr 2017 07:30:11 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:40878 "EHLO SMTP02.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932191AbdDGLaL (ORCPT ); Fri, 7 Apr 2017 07:30:11 -0400 X-IronPort-AV: E=Sophos;i="5.37,164,1488844800"; d="scan'208";a="426669723" From: Germano Percossi To: , , , CC: Subject: [PATCH v2 1/4] CIFS: queue 'reconnect' thread with a delay Date: Fri, 7 Apr 2017 12:29:35 +0100 Message-ID: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP All the other threads are queue with a delay, no reason why this one need to be so aggressive. Signed-off-by: Germano Percossi --- fs/cifs/smb2pdu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 7446496..efe167c 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -258,7 +258,7 @@ smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon) goto out; if (smb2_command != SMB2_INTERNAL_CMD) - queue_delayed_work(cifsiod_wq, &server->reconnect, 0); + queue_delayed_work(cifsiod_wq, &server->reconnect, 2 * HZ); atomic_inc(&tconInfoReconnectCount); out: @@ -2231,7 +2231,7 @@ SMB2_echo(struct TCP_Server_Info *server) if (server->tcpStatus == CifsNeedNegotiate) { /* No need to send echo on newly established connections */ - queue_delayed_work(cifsiod_wq, &server->reconnect, 0); + queue_delayed_work(cifsiod_wq, &server->reconnect, 2 * HZ); return rc; }