Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp818673ybl; Wed, 11 Dec 2019 08:00:23 -0800 (PST) X-Google-Smtp-Source: APXvYqymGISRINyR4YPbMpU5GKmXW3BnortLr0l0ydnGDJB9WDC6lu3ycaGBk7HW1/kaIB9yjecZ X-Received: by 2002:aca:4a08:: with SMTP id x8mr3414616oia.39.1576080023419; Wed, 11 Dec 2019 08:00:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576080023; cv=none; d=google.com; s=arc-20160816; b=djTmqillsWT+Zswp1k4ImjLIA+jKEasGlsgNsu2fd7m3mJz/ToQX9QZ092ygGsFwGc c2/5mmbl7Y6LDcGQ0/CDHM2FAkGfngibVE6k84YHq4TrcgJQ1hzZ9B1m+llZWsErGO9s PO/rfV3PlTFnbL+zWaHvyGD4RPVenRvRtSuqC+UHbh36CY1fzBKYMShf0G8aBGcl02o0 ItEsO4dc8+JjfNN/Aeg3RiY5Nxmb6upkO4zjA0lEH3I5dEHQmDNZgMyoisuJuPF8Pjjn z2vkQpV54X0EWfYWNjPbiDJ52PxgGT7n7hg7JYFU61dygkXMIsto0YPFoKMp1zMxWIJQ puSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4lHiYye08z4TUABbDTIMr7HIJFbmKxGJ+WnKR2xVYqM=; b=SW/Nq9nzV36R1Is1krOF63zXR0c3Ao58YoobRXfhpBsnDkGuRnVrK48FoCJlrc9rfY XJlTqhGb8p2VhpTHgvl5N1XwHm0WFTom2gaDgM4tZQszqtZ59ExEAXSVzl3JYyfVu+jL N++spdW7u0HyFdyHw69M3FaBpiQrMt5u7udriwTCjiP1Jozw+gKiH58KR4o+xk2q4aK3 EQONy5j3phVy5HKMOf0PRxJO9An3nxT5FNn4AeObrflesZiVNxt+OfHW9vfRi9sVp2b8 Sm7zhPKIg95Qc12HjnFSpuTE8ob/Jph55t0n1bev+oIyJss/mUQ82XEhKaof9VJNlU8r hKPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D4REs6tj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si1285102otg.90.2019.12.11.08.00.10; Wed, 11 Dec 2019 08:00:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D4REs6tj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731937AbfLKP6J (ORCPT + 99 others); Wed, 11 Dec 2019 10:58:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:40288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730488AbfLKPOm (ORCPT ); Wed, 11 Dec 2019 10:14:42 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4DB3D24658; Wed, 11 Dec 2019 15:14:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576077281; bh=73y6llFQMMIZCQOShezk0KW2VUlhcWIdRCpboFMbUQs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D4REs6tj9TLnSwAH1IkyFAzkQgEv4AnZ7mB9x3mYxgM3tjm/i852ReLVG6Hv+jWvX eKcbFOp/xw264X0g+QwWZG7ap5PrObrvwv90irYqINYyQGaeEtMuzMZMI0VD9I+z44 JL1KcChbXwVmCGTT80l04pVwYvdiqa/gzbajxzVU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jon Hunter , Trond Myklebust Subject: [PATCH 5.3 048/105] SUNRPC: Avoid RPC delays when exiting suspend Date: Wed, 11 Dec 2019 16:05:37 +0100 Message-Id: <20191211150241.052599321@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191211150221.153659747@linuxfoundation.org> References: <20191211150221.153659747@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Trond Myklebust commit 66eb3add452aa1be65ad536da99fac4b8f620b74 upstream. Jon Hunter: "I have been tracking down another suspend/NFS related issue where again I am seeing random delays exiting suspend. The delays can be up to a couple minutes in the worst case and this is causing a suspend test we have to fail." Change the use of a deferrable work to a standard delayed one. Reported-by: Jon Hunter Tested-by: Jon Hunter Fixes: 7e0a0e38fcfea ("SUNRPC: Replace the queue timer with a delayed work function") Signed-off-by: Trond Myklebust Signed-off-by: Greg Kroah-Hartman --- net/sunrpc/sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/sunrpc/sched.c +++ b/net/sunrpc/sched.c @@ -260,7 +260,7 @@ static void __rpc_init_priority_wait_que rpc_reset_waitqueue_priority(queue); queue->qlen = 0; queue->timer_list.expires = 0; - INIT_DEFERRABLE_WORK(&queue->timer_list.dwork, __rpc_queue_timer_fn); + INIT_DELAYED_WORK(&queue->timer_list.dwork, __rpc_queue_timer_fn); INIT_LIST_HEAD(&queue->timer_list.list); rpc_assign_waitqueue_name(queue, qname); }