From patchwork Fri Nov 15 21:26:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13877135 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99C45D68BD7 for ; Fri, 15 Nov 2024 21:27:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7A1A98D000E; Fri, 15 Nov 2024 16:26:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 729F08D000C; Fri, 15 Nov 2024 16:26:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4DF0C8D0011; Fri, 15 Nov 2024 16:26:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 2332D8D000E for ; Fri, 15 Nov 2024 16:26:50 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id D62CC1A0452 for ; Fri, 15 Nov 2024 21:26:49 +0000 (UTC) X-FDA: 82789610946.17.B022113 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf08.hostedemail.com (Postfix) with ESMTP id 9837A160018 for ; Fri, 15 Nov 2024 21:26:17 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=eAVIrYLN; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf08.hostedemail.com: domain of eahariha@linux.microsoft.com designates 13.77.154.182 as permitted sender) smtp.mailfrom=eahariha@linux.microsoft.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731705944; a=rsa-sha256; cv=none; b=hdtIE6Ujy2lGX4Jv2W944xhWQcJuYUXf2bd+R14efyzZoGtUJm6Mlg10qdyGVAAjklHFoX wmB2L5Ute57tK8lLjK+1GPj6eUdRv+SzdfZAHnTEGAjKqq5euLybyW7hNxTfvVMZdF/Rc3 ecdKOq4BbtE2UGS+vRvfS1+LFsBwg/s= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=eAVIrYLN; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf08.hostedemail.com: domain of eahariha@linux.microsoft.com designates 13.77.154.182 as permitted sender) smtp.mailfrom=eahariha@linux.microsoft.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731705943; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=pCX0EpdqmyNkdZPLk4Z0q7m89NufhvHb1Y+2Mrmnnrk=; b=6s08okaRf+lDL98AgFifHAmWSCvM1qlU8SVYEyLc/Wphuvdbt9PgciJLhL04UE2Pie+3DR m+v3SRMZkqeH3MtPJgJ1QnOhRwtuZzmqBPF3IXGwfoL20j+pzf+BzHmmdBXwU2/hpOcRfx ue/9AJ7aO8MflrEs5FM792Xhr7qsp7c= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id E651E23718AC; Fri, 15 Nov 2024 13:26:43 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com E651E23718AC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706004; bh=pCX0EpdqmyNkdZPLk4Z0q7m89NufhvHb1Y+2Mrmnnrk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=eAVIrYLNHkRW1opV+l10sI01k9fp5RPobV2nEm7OQtZTXvL1OZpViQrABNURt8i3R Lt5oz4EgCq0BgTDEpnRIgtHazGUHt44mhOWeQa6X66HXQwFE3odFdSj0nTsElRySJE uoqOVSbVkxhvj88d1jkAwyWIgOOXRrS//ir9JXro= From: Easwar Hariharan Date: Fri, 15 Nov 2024 21:26:30 +0000 Subject: [PATCH v2 13/21] xen/blkback: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Message-Id: <20241115-converge-secs-to-jiffies-v2-13-911fb7595e79@linux.microsoft.com> References: <20241115-converge-secs-to-jiffies-v2-0-911fb7595e79@linux.microsoft.com> In-Reply-To: <20241115-converge-secs-to-jiffies-v2-0-911fb7595e79@linux.microsoft.com> To: Pablo Neira Ayuso , Jozsef Kadlecsik , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Julia Lawall , Nicolas Palix , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Ofir Bitton , Oded Gabbay , Lucas De Marchi , =?utf-8?q?Thomas_Hellstr=C3=B6?= =?utf-8?q?m?= , Rodrigo Vivi , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Jeroen de Borst , Praveen Kaligineedi , Shailend Chand , Andrew Lunn , James Smart , Dick Kennedy , "James E.J. Bottomley" , "Martin K. Petersen" , =?utf-8?q?Roger_Pau_Mon?= =?utf-8?q?n=C3=A9?= , Jens Axboe , Kalle Valo , Jeff Johnson , Catalin Marinas , Andrew Morton , Jack Wang , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Greg Kroah-Hartman , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Xiubo Li , Ilya Dryomov , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , Jaroslav Kysela , Takashi Iwai , Lucas Stach , Russell King , Christian Gmeiner , Louis Peens , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Madhavan Srinivasan Cc: netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, cocci@inria.fr, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, dri-devel@lists.freedesktop.org, intel-xe@lists.freedesktop.org, linux-scsi@vger.kernel.org, xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, linux-mm@kvack.org, linux-bluetooth@vger.kernel.org, linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, ceph-devel@vger.kernel.org, live-patching@vger.kernel.org, linux-sound@vger.kernel.org, etnaviv@lists.freedesktop.org, oss-drivers@corigine.com, linuxppc-dev@lists.ozlabs.org, Anna-Maria Behnsen , Easwar Hariharan X-Mailer: b4 0.14.2 X-Rspam-User: X-Rspamd-Queue-Id: 9837A160018 X-Rspamd-Server: rspam11 X-Stat-Signature: f5fgzui6rde34cwkg1kkwtjxfp77nbee X-HE-Tag: 1731705977-299301 X-HE-Meta: U2FsdGVkX18rf83476GncKeJdHZekH/J6dP5nQ72rXOJboObSg59GbD1YsWWMwSO5nMyhRvtyiV53Xyc/q8/bA1PkjqrODV/x4E8Mz/c+RY/VSXYMOHao46j2ofmjrCnvhnus9jdXQ4VbPu86cuUky8uEseep74Ej5EUm4ERt5bR8Q+uea5Fsw0wlEowX591u4GT62mC7fz5hsGLiuJbnUU9BtqQvuBGGf8dsufGBCmzX2iEU+FwnCiGf6yexQ8Ju4jA4PpGF8jLEqAWYRU2gXCEPUMdvS7E2xgDuzyTHceiqrXQ3jI/jJqsyt5mQ79SMh3uRevf2q7qgF7o1xmm0PuxOmHo5gZr4kCmPSeFl3a6XacpWdaMOxD5KcFoYVk4VdHxwkXdPAMuipnMzVSl86jyL91pmWYT/19AMCTDpsoZmAmKHlXXE+fqrY6xosaY5t9tUNNn/UkVVDveQyLvfFzeNvQPyDTuhCwTu3WkMcsC/rNmcNzd+DfbTtcqyIUiR24WmSCgzcAPRi6yZZ1kRZ2vlXW/9uwV4j9k3hiLvuSFRjtSK+Kkj19QlHa2NsuusS54D0iQLb3HbDY4gstxQTuP0nLPWeFWQt63o/Y5IYJnytC5gESBcqdZcN47VkFcfej65SyiNuTatsP/VcdsrW7kdHzK9Xfh26VIx/SiVsLAjxXi6qjAocxdRRPoEMvwHomlGM/gU5q8iJQXqgKR4odis/LH2cAbcWC8ZwdVxdDlK5Q4l8wDxxrqTPsSLmq60Qlc0NxhsCbPe3/CUk/iLTMfjFWDjqk8pywkkB/6nEyysphfOSGAYuhEB9hU7QUTzD3YnpavteRz+Kzq9X/DOihvkirCla7XUNzt/KHY0zt0ydEsbJaLMksLOhGYbwT2RidC1ZUXDV+GnaTEp/PBWJJllMd69AHm5rcp2E6KUV41osZK6VJSwLqvyPnKn944XrN1WTFhF6nVpSYMasc omjIoIfw VdmVYotckmEQz/NdpFc/4a6AKWRIgbwxuOZoMe+s47o9qJVoJCLkwZ//hu6hZ3P8aFg3QrKTMOzZf5E5AxyfAnq4JCJJDN72GQBu8/9trOwR6iTsEfI3gKIYgcYmfXdW/GVQ4sq0hQKV0v6JuColQ+ZULIL6Pk67qq3l97v+4lID51nf1GIuVaApi2DwMNA7No2TNmbsEzSdH+84Xi+oQF0MA6uGX1q4ODN5skO69Q0auFxbwIfa0w6mL2JPEvIQBrcU+rUbEI2ARCCaLmL2l3LKxpwIWxqa8iS4tGKPxqku9EZ/hKkOQrO75KNL4Ff8+LDO/E2C6Y+S6F5Hd2vYXFaFgKNNCaKyq4yBOXjLNcPADvrWRZm7rh9VbYj9XKYpm+N6HVQniLW7WBYdpm5jcHv/0yLgmIx9Mg8s89tHsT3NPsUmqZRqWUN/M2gdrH9q9hkjf X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/block/xen-blkback/blkback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/xen-blkback/blkback.c index 838064593f62b75f3d937c0c041ea78dedbbaf84..a7c2b04ab943de9cbd69b596aad177a0534f7762 100644 --- a/drivers/block/xen-blkback/blkback.c +++ b/drivers/block/xen-blkback/blkback.c @@ -544,7 +544,7 @@ static void print_stats(struct xen_blkif_ring *ring) ring->st_rd_req, ring->st_wr_req, ring->st_f_req, ring->st_ds_req, ring->persistent_gnt_c, max_pgrants); - ring->st_print = jiffies + msecs_to_jiffies(10 * 1000); + ring->st_print = jiffies + secs_to_jiffies(10); ring->st_rd_req = 0; ring->st_wr_req = 0; ring->st_oo_req = 0;