From patchwork Tue Mar 28 23:26:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Germano Percossi X-Patchwork-Id: 9650643 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 359A5602C8 for ; Tue, 28 Mar 2017 23:27:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D5AB205FC for ; Tue, 28 Mar 2017 23:27:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0EE642837F; Tue, 28 Mar 2017 23:27:05 +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 94BF7205FC for ; Tue, 28 Mar 2017 23:27:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932220AbdC1X1E (ORCPT ); Tue, 28 Mar 2017 19:27:04 -0400 Received: from smtp.citrix.com ([66.165.176.89]:33436 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753119AbdC1X1E (ORCPT ); Tue, 28 Mar 2017 19:27:04 -0400 X-IronPort-AV: E=Sophos;i="5.36,238,1486425600"; d="scan'208";a="416365973" From: Germano Percossi To: , , CC: Subject: [PATCH 1/4] CIFS: queue 'reconnect' thread with a delay Date: Wed, 29 Mar 2017 00:26:51 +0100 Message-ID: <1490743614-5439-2-git-send-email-germano.percossi@citrix.com> X-Mailer: git-send-email 2.7.4 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; }