* [PATCH v2 00/21] Converge on using secs_to_jiffies()
@ 2024-11-15 21:26 Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 01/21] netfilter: conntrack: Cleanup timeout definitions Easwar Hariharan
` (24 more replies)
0 siblings, 25 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
This is a series that follows up on my previous series to introduce
secs_to_jiffies() and convert a few initial users.[1] In the review for
that series, Anna-Maria requested converting other users with
Coccinelle. This is part 1 that converts users of msecs_to_jiffies()
that use the multiply pattern of either of:
- msecs_to_jiffies(N*1000), or
- msecs_to_jiffies(N*MSEC_PER_SEC)
The entire conversion is made with Coccinelle in the script added in
patch 2. Some changes suggested by Coccinelle have been deferred to
later parts that will address other possible variant patterns.
CC: Anna-Maria Behnsen <anna-maria@linutronix.de>
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
[1] https://lore.kernel.org/all/20241030-open-coded-timeouts-v3-0-9ba123facf88@linux.microsoft.com/
[2] https://lore.kernel.org/all/8734kngfni.fsf@somnus/
---
Changes in v2:
- EDITME: describe what is new in this series revision.
- EDITME: use bulletpoints and terse descriptions.
- Link to v1: https://lore.kernel.org/r/20241115-converge-secs-to-jiffies-v1-0-19aadc34941b@linux.microsoft.com
---
Easwar Hariharan (21):
netfilter: conntrack: Cleanup timeout definitions
coccinelle: misc: Add secs_to_jiffies script
arm: pxa: Convert timeouts to use secs_to_jiffies()
s390: kernel: Convert timeouts to use secs_to_jiffies()
powerpc/papr_scm: Convert timeouts to secs_to_jiffies()
mm: kmemleak: Convert timeouts to secs_to_jiffies()
accel/habanalabs: Convert timeouts to secs_to_jiffies()
drm/xe: Convert timeout to secs_to_jiffies()
drm/etnaviv: Convert timeouts to secs_to_jiffies()
scsi: lpfc: Convert timeouts to secs_to_jiffies()
scsi: arcmsr: Convert timeouts to secs_to_jiffies()
scsi: pm8001: Convert timeouts to secs_to_jiffies()
xen/blkback: Convert timeouts to secs_to_jiffies()
gve: Convert timeouts to secs_to_jiffies()
wifi: ath11k: Convert timeouts to secs_to_jiffies()
Bluetooth: MGMT: Convert timeouts to secs_to_jiffies()
staging: vc04_services: Convert timeouts to secs_to_jiffies()
ceph: Convert timeouts to secs_to_jiffies()
livepatch: Convert timeouts to secs_to_jiffies()
ALSA: line6: Convert timeouts to secs_to_jiffies()
nfp: Convert timeouts to secs_to_jiffies()
arch/arm/mach-pxa/sharpsl_pm.c | 6 +++---
arch/powerpc/platforms/pseries/papr_scm.c | 2 +-
arch/s390/kernel/lgr.c | 3 ++-
arch/s390/kernel/time.c | 4 ++--
arch/s390/kernel/topology.c | 2 +-
drivers/accel/habanalabs/common/device.c | 2 +-
drivers/accel/habanalabs/common/habanalabs_drv.c | 3 +--
drivers/block/xen-blkback/blkback.c | 2 +-
drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c | 2 +-
drivers/gpu/drm/xe/xe_device.c | 2 +-
drivers/net/ethernet/google/gve/gve_tx_dqo.c | 6 ++----
drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 2 +-
drivers/net/wireless/ath/ath11k/debugfs.c | 2 +-
drivers/scsi/arcmsr/arcmsr_hba.c | 2 +-
drivers/scsi/lpfc/lpfc_init.c | 18 +++++++++---------
drivers/scsi/lpfc/lpfc_nportdisc.c | 8 ++++----
drivers/scsi/lpfc/lpfc_nvme.c | 2 +-
drivers/scsi/lpfc/lpfc_sli.c | 4 ++--
drivers/scsi/lpfc/lpfc_vmid.c | 2 +-
drivers/scsi/pm8001/pm8001_init.c | 2 +-
.../vc04_services/bcm2835-audio/bcm2835-vchiq.c | 2 +-
fs/ceph/quota.c | 2 +-
mm/kmemleak.c | 4 ++--
net/bluetooth/mgmt.c | 2 +-
net/netfilter/nf_conntrack_proto_sctp.c | 21 ++++++++-------------
samples/livepatch/livepatch-callbacks-busymod.c | 2 +-
samples/livepatch/livepatch-shadow-fix1.c | 2 +-
samples/livepatch/livepatch-shadow-mod.c | 10 +++++-----
scripts/coccinelle/misc/secs_to_jiffies.cocci | 21 +++++++++++++++++++++
sound/usb/line6/toneport.c | 2 +-
30 files changed, 79 insertions(+), 65 deletions(-)
---
base-commit: 2d5404caa8c7bb5c4e0435f94b28834ae5456623
change-id: 20241112-converge-secs-to-jiffies-d99d1016bd11
Best regards,
--
Easwar Hariharan <eahariha@linux.microsoft.com>
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 01/21] netfilter: conntrack: Cleanup timeout definitions
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-15 22:34 ` Stephen Rothwell
2024-11-16 9:40 ` Christophe Leroy
2024-11-15 21:26 ` [PATCH v2 02/21] coccinelle: misc: Add secs_to_jiffies script Easwar Hariharan
` (23 subsequent siblings)
24 siblings, 2 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
None of the higher order definitions are used anymore, so remove
definitions for minutes, hours, and days timeouts. Convert the seconds
denominated timeouts to secs_to_jiffies()
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
---
net/netfilter/nf_conntrack_proto_sctp.c | 21 ++++++++-------------
1 file changed, 8 insertions(+), 13 deletions(-)
diff --git a/net/netfilter/nf_conntrack_proto_sctp.c b/net/netfilter/nf_conntrack_proto_sctp.c
index 4cc97f971264ed779434ab4597dd0162586b3736..6c95ac96fa42a39acafb5b88a7cf8898010e911c 100644
--- a/net/netfilter/nf_conntrack_proto_sctp.c
+++ b/net/netfilter/nf_conntrack_proto_sctp.c
@@ -39,20 +39,15 @@ static const char *const sctp_conntrack_names[] = {
[SCTP_CONNTRACK_HEARTBEAT_SENT] = "HEARTBEAT_SENT",
};
-#define SECS * HZ
-#define MINS * 60 SECS
-#define HOURS * 60 MINS
-#define DAYS * 24 HOURS
-
static const unsigned int sctp_timeouts[SCTP_CONNTRACK_MAX] = {
- [SCTP_CONNTRACK_CLOSED] = 10 SECS,
- [SCTP_CONNTRACK_COOKIE_WAIT] = 3 SECS,
- [SCTP_CONNTRACK_COOKIE_ECHOED] = 3 SECS,
- [SCTP_CONNTRACK_ESTABLISHED] = 210 SECS,
- [SCTP_CONNTRACK_SHUTDOWN_SENT] = 3 SECS,
- [SCTP_CONNTRACK_SHUTDOWN_RECD] = 3 SECS,
- [SCTP_CONNTRACK_SHUTDOWN_ACK_SENT] = 3 SECS,
- [SCTP_CONNTRACK_HEARTBEAT_SENT] = 30 SECS,
+ [SCTP_CONNTRACK_CLOSED] = secs_to_jiffies(10),
+ [SCTP_CONNTRACK_COOKIE_WAIT] = secs_to_jiffies(3),
+ [SCTP_CONNTRACK_COOKIE_ECHOED] = secs_to_jiffies(3),
+ [SCTP_CONNTRACK_ESTABLISHED] = secs_to_jiffies(210),
+ [SCTP_CONNTRACK_SHUTDOWN_SENT] = secs_to_jiffies(3),
+ [SCTP_CONNTRACK_SHUTDOWN_RECD] = secs_to_jiffies(3),
+ [SCTP_CONNTRACK_SHUTDOWN_ACK_SENT] = secs_to_jiffies(3),
+ [SCTP_CONNTRACK_HEARTBEAT_SENT] = secs_to_jiffies(3),
};
#define SCTP_FLAG_HEARTBEAT_VTAG_FAILED 1
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 02/21] coccinelle: misc: Add secs_to_jiffies script
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 01/21] netfilter: conntrack: Cleanup timeout definitions Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-16 6:05 ` Christophe JAILLET
` (2 more replies)
2024-11-15 21:26 ` [PATCH v2 03/21] arm: pxa: Convert timeouts to use secs_to_jiffies() Easwar Hariharan
` (22 subsequent siblings)
24 siblings, 3 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
Suggested-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
---
scripts/coccinelle/misc/secs_to_jiffies.cocci | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/scripts/coccinelle/misc/secs_to_jiffies.cocci b/scripts/coccinelle/misc/secs_to_jiffies.cocci
new file mode 100644
index 0000000000000000000000000000000000000000..af762b1c0aac8f044f21150bfaafd9efc834ee87
--- /dev/null
+++ b/scripts/coccinelle/misc/secs_to_jiffies.cocci
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0-only
+///
+/// Find usages of:
+/// - msecs_to_jiffies(value*1000)
+/// - msecs_to_jiffies(value*MSEC_PER_SEC)
+///
+// Confidence: High
+// Copyright: (C) 2024 Easwar Hariharan Microsoft
+//
+// Keywords: secs, seconds, jiffies
+//
+
+@@ constant C; @@
+
+- msecs_to_jiffies(C * 1000)
++ secs_to_jiffies(C)
+
+@@ constant C; @@
+
+- msecs_to_jiffies(C * MSEC_PER_SEC)
++ secs_to_jiffies(C)
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 03/21] arm: pxa: Convert timeouts to use secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 01/21] netfilter: conntrack: Cleanup timeout definitions Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 02/21] coccinelle: misc: Add secs_to_jiffies script Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-16 10:26 ` Christophe Leroy
2024-11-15 21:26 ` [PATCH v2 04/21] s390: kernel: " Easwar Hariharan
` (21 subsequent siblings)
24 siblings, 1 reply; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
arch/arm/mach-pxa/sharpsl_pm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-pxa/sharpsl_pm.c b/arch/arm/mach-pxa/sharpsl_pm.c
index 72fa2e3fd35318e5a63c121ed7990a56a56b134c..bbbd06bc79bbb94fb258562e5a382acaf3c277b3 100644
--- a/arch/arm/mach-pxa/sharpsl_pm.c
+++ b/arch/arm/mach-pxa/sharpsl_pm.c
@@ -31,9 +31,9 @@
/*
* Constants
*/
-#define SHARPSL_CHARGE_ON_TIME_INTERVAL (msecs_to_jiffies(1*60*1000)) /* 1 min */
-#define SHARPSL_CHARGE_FINISH_TIME (msecs_to_jiffies(10*60*1000)) /* 10 min */
-#define SHARPSL_BATCHK_TIME (msecs_to_jiffies(15*1000)) /* 15 sec */
+#define SHARPSL_CHARGE_ON_TIME_INTERVAL (secs_to_jiffies(60)) /* 1 min */
+#define SHARPSL_CHARGE_FINISH_TIME (secs_to_jiffies(10*60)) /* 10 min */
+#define SHARPSL_BATCHK_TIME (secs_to_jiffies(15)) /* 15 sec */
#define SHARPSL_BATCHK_TIME_SUSPEND (60*10) /* 10 min */
#define SHARPSL_WAIT_CO_TIME 15 /* 15 sec */
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 04/21] s390: kernel: Convert timeouts to use secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (2 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 03/21] arm: pxa: Convert timeouts to use secs_to_jiffies() Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-18 8:26 ` Heiko Carstens
2024-11-15 21:26 ` [PATCH v2 05/21] powerpc/papr_scm: Convert timeouts to secs_to_jiffies() Easwar Hariharan
` (20 subsequent siblings)
24 siblings, 1 reply; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
arch/s390/kernel/lgr.c | 3 ++-
arch/s390/kernel/time.c | 4 ++--
arch/s390/kernel/topology.c | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/arch/s390/kernel/lgr.c b/arch/s390/kernel/lgr.c
index 6652e54cf3db9fbdd8cfb06f8a0dc1d4c05ae7d7..68021cb38574b122bbe3d9f70e9168305360017b 100644
--- a/arch/s390/kernel/lgr.c
+++ b/arch/s390/kernel/lgr.c
@@ -166,7 +166,8 @@ static struct timer_list lgr_timer;
*/
static void lgr_timer_set(void)
{
- mod_timer(&lgr_timer, jiffies + msecs_to_jiffies(LGR_TIMER_INTERVAL_SECS * MSEC_PER_SEC));
+ mod_timer(&lgr_timer,
+ jiffies + secs_to_jiffies(LGR_TIMER_INTERVAL_SECS));
}
/*
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c
index b713effe057967623f64da8297314fcc42ff1af2..e28c61d39d27c6e89f490e779ff674ba2fe21d3e 100644
--- a/arch/s390/kernel/time.c
+++ b/arch/s390/kernel/time.c
@@ -656,12 +656,12 @@ static void stp_check_leap(void)
if (ret < 0)
pr_err("failed to set leap second flags\n");
/* arm Timer to clear leap second flags */
- mod_timer(&stp_timer, jiffies + msecs_to_jiffies(14400 * MSEC_PER_SEC));
+ mod_timer(&stp_timer, jiffies + secs_to_jiffies(14400));
} else {
/* The day the leap second is scheduled for hasn't been reached. Retry
* in one hour.
*/
- mod_timer(&stp_timer, jiffies + msecs_to_jiffies(3600 * MSEC_PER_SEC));
+ mod_timer(&stp_timer, jiffies + secs_to_jiffies(3600));
}
}
diff --git a/arch/s390/kernel/topology.c b/arch/s390/kernel/topology.c
index 813e5da9a9737e05ec3ef85a495fe38cbb40c49b..99095ff3897c1b5337f7e2abcf10f3fe8219ad7c 100644
--- a/arch/s390/kernel/topology.c
+++ b/arch/s390/kernel/topology.c
@@ -370,7 +370,7 @@ static void set_topology_timer(void)
if (atomic_add_unless(&topology_poll, -1, 0))
mod_timer(&topology_timer, jiffies + msecs_to_jiffies(100));
else
- mod_timer(&topology_timer, jiffies + msecs_to_jiffies(60 * MSEC_PER_SEC));
+ mod_timer(&topology_timer, jiffies + secs_to_jiffies(60));
}
void topology_expect_change(void)
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 05/21] powerpc/papr_scm: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (3 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 04/21] s390: kernel: " Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-16 10:06 ` Christophe Leroy
2024-11-15 21:26 ` [PATCH v2 06/21] mm: kmemleak: " Easwar Hariharan
` (19 subsequent siblings)
24 siblings, 1 reply; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
arch/powerpc/platforms/pseries/papr_scm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/platforms/pseries/papr_scm.c b/arch/powerpc/platforms/pseries/papr_scm.c
index 9e297f88adc5d97d4dc7b267b0bfebd58e5cf193..9e8086ec66e0f0e555ac27933854c06cfcf91a04 100644
--- a/arch/powerpc/platforms/pseries/papr_scm.c
+++ b/arch/powerpc/platforms/pseries/papr_scm.c
@@ -543,7 +543,7 @@ static int drc_pmem_query_health(struct papr_scm_priv *p)
/* Jiffies offset for which the health data is assumed to be same */
cache_timeout = p->lasthealth_jiffies +
- msecs_to_jiffies(MIN_HEALTH_QUERY_INTERVAL * 1000);
+ secs_to_jiffies(MIN_HEALTH_QUERY_INTERVAL);
/* Fetch new health info is its older than MIN_HEALTH_QUERY_INTERVAL */
if (time_after(jiffies, cache_timeout))
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 06/21] mm: kmemleak: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (4 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 05/21] powerpc/papr_scm: Convert timeouts to secs_to_jiffies() Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 07/21] accel/habanalabs: " Easwar Hariharan
` (18 subsequent siblings)
24 siblings, 0 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
mm/kmemleak.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/kmemleak.c b/mm/kmemleak.c
index 0400f5e8ac60de555f43d85f1d36f67e48b4ebed..2c099d0819b1896390b842af76069a46bffabc23 100644
--- a/mm/kmemleak.c
+++ b/mm/kmemleak.c
@@ -1816,7 +1816,7 @@ static int kmemleak_scan_thread(void *arg)
* Wait before the first scan to allow the system to fully initialize.
*/
if (first_run) {
- signed long timeout = msecs_to_jiffies(SECS_FIRST_SCAN * 1000);
+ signed long timeout = secs_to_jiffies(SECS_FIRST_SCAN);
first_run = 0;
while (timeout && !kthread_should_stop())
timeout = schedule_timeout_interruptible(timeout);
@@ -2202,7 +2202,7 @@ void __init kmemleak_init(void)
return;
jiffies_min_age = msecs_to_jiffies(MSECS_MIN_AGE);
- jiffies_scan_wait = msecs_to_jiffies(SECS_SCAN_WAIT * 1000);
+ jiffies_scan_wait = secs_to_jiffies(SECS_SCAN_WAIT);
object_cache = KMEM_CACHE(kmemleak_object, SLAB_NOLEAKTRACE);
scan_area_cache = KMEM_CACHE(kmemleak_scan_area, SLAB_NOLEAKTRACE);
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 07/21] accel/habanalabs: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (5 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 06/21] mm: kmemleak: " Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 08/21] drm/xe: Convert timeout " Easwar Hariharan
` (17 subsequent siblings)
24 siblings, 0 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
drivers/accel/habanalabs/common/device.c | 2 +-
drivers/accel/habanalabs/common/habanalabs_drv.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/accel/habanalabs/common/device.c b/drivers/accel/habanalabs/common/device.c
index e0cf3b4343bb081638430f2552ed27431b488ff9..30277ae410d4b742ffb7bddc35498564ff96fe62 100644
--- a/drivers/accel/habanalabs/common/device.c
+++ b/drivers/accel/habanalabs/common/device.c
@@ -817,7 +817,7 @@ static void device_hard_reset_pending(struct work_struct *work)
}
queue_delayed_work(hdev->reset_wq, &device_reset_work->reset_work,
- msecs_to_jiffies(HL_PENDING_RESET_PER_SEC * 1000));
+ secs_to_jiffies(HL_PENDING_RESET_PER_SEC));
}
}
diff --git a/drivers/accel/habanalabs/common/habanalabs_drv.c b/drivers/accel/habanalabs/common/habanalabs_drv.c
index 708dfd10f39c584a6221c29015f4b0323574145a..5ec13f3a46f915e75b04582b28d51ba8bb50be78 100644
--- a/drivers/accel/habanalabs/common/habanalabs_drv.c
+++ b/drivers/accel/habanalabs/common/habanalabs_drv.c
@@ -362,8 +362,7 @@ static void fixup_device_params_per_asic(struct hl_device *hdev, int timeout)
* a different default timeout for Gaudi
*/
if (timeout == HL_DEFAULT_TIMEOUT_LOCKED)
- hdev->timeout_jiffies = msecs_to_jiffies(GAUDI_DEFAULT_TIMEOUT_LOCKED *
- MSEC_PER_SEC);
+ hdev->timeout_jiffies = secs_to_jiffies(GAUDI_DEFAULT_TIMEOUT_LOCKED);
hdev->reset_upon_device_release = 0;
break;
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 08/21] drm/xe: Convert timeout to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (6 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 07/21] accel/habanalabs: " Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 09/21] drm/etnaviv: Convert timeouts " Easwar Hariharan
` (16 subsequent siblings)
24 siblings, 0 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
drivers/gpu/drm/xe/xe_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index a1987b554a8d2aa42b29301f2853edddfda7fda5..bb3338ef4191e76128611eeb9531c9d2089db85a 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -502,7 +502,7 @@ static int wait_for_lmem_ready(struct xe_device *xe)
drm_dbg(&xe->drm, "Waiting for lmem initialization\n");
start = jiffies;
- timeout = start + msecs_to_jiffies(60 * 1000); /* 60 sec! */
+ timeout = start + secs_to_jiffies(60); /* 60 sec! */
do {
if (signal_pending(current))
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 09/21] drm/etnaviv: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (7 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 08/21] drm/xe: Convert timeout " Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-12-02 21:16 ` Christian Gmeiner
2024-11-15 21:26 ` [PATCH v2 10/21] scsi: lpfc: " Easwar Hariharan
` (15 subsequent siblings)
24 siblings, 1 reply; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c b/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c
index 721d633aece9d4c81f0019e4c55884f26ee61c60..0f5a2c885d0ab7029c7248e15d6ea3c31823b782 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c
@@ -100,7 +100,7 @@ int etnaviv_cmdbuf_init(struct etnaviv_cmdbuf_suballoc *suballoc,
mutex_unlock(&suballoc->lock);
ret = wait_event_interruptible_timeout(suballoc->free_event,
suballoc->free_space,
- msecs_to_jiffies(10 * 1000));
+ secs_to_jiffies(10));
if (!ret) {
dev_err(suballoc->dev,
"Timeout waiting for cmdbuf space\n");
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 10/21] scsi: lpfc: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (8 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 09/21] drm/etnaviv: Convert timeouts " Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 11/21] scsi: arcmsr: " Easwar Hariharan
` (14 subsequent siblings)
24 siblings, 0 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
drivers/scsi/lpfc/lpfc_init.c | 18 +++++++++---------
drivers/scsi/lpfc/lpfc_nportdisc.c | 8 ++++----
drivers/scsi/lpfc/lpfc_nvme.c | 2 +-
drivers/scsi/lpfc/lpfc_sli.c | 4 ++--
drivers/scsi/lpfc/lpfc_vmid.c | 2 +-
5 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 0dd451009b07914450dc70f2c981b690557c1d8c..12666c4c7986ae0bdfaa5c8f040b4ea0be64550d 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -598,7 +598,7 @@ lpfc_config_port_post(struct lpfc_hba *phba)
jiffies + msecs_to_jiffies(1000 * timeout));
/* Set up heart beat (HB) timer */
mod_timer(&phba->hb_tmofunc,
- jiffies + msecs_to_jiffies(1000 * LPFC_HB_MBOX_INTERVAL));
+ jiffies + secs_to_jiffies(LPFC_HB_MBOX_INTERVAL));
clear_bit(HBA_HBEAT_INP, &phba->hba_flag);
clear_bit(HBA_HBEAT_TMO, &phba->hba_flag);
phba->last_completion_time = jiffies;
@@ -1267,7 +1267,7 @@ lpfc_hb_mbox_cmpl(struct lpfc_hba * phba, LPFC_MBOXQ_t * pmboxq)
!test_bit(FC_UNLOADING, &phba->pport->load_flag))
mod_timer(&phba->hb_tmofunc,
jiffies +
- msecs_to_jiffies(1000 * LPFC_HB_MBOX_INTERVAL));
+ secs_to_jiffies(LPFC_HB_MBOX_INTERVAL));
return;
}
@@ -1555,7 +1555,7 @@ lpfc_hb_timeout_handler(struct lpfc_hba *phba)
/* If IOs are completing, no need to issue a MBX_HEARTBEAT */
spin_lock_irq(&phba->pport->work_port_lock);
if (time_after(phba->last_completion_time +
- msecs_to_jiffies(1000 * LPFC_HB_MBOX_INTERVAL),
+ secs_to_jiffies(LPFC_HB_MBOX_INTERVAL),
jiffies)) {
spin_unlock_irq(&phba->pport->work_port_lock);
if (test_bit(HBA_HBEAT_INP, &phba->hba_flag))
@@ -3352,7 +3352,7 @@ lpfc_block_mgmt_io(struct lpfc_hba *phba, int mbx_action)
spin_unlock_irqrestore(&phba->hbalock, iflag);
if (mbx_action == LPFC_MBX_NO_WAIT)
return;
- timeout = msecs_to_jiffies(LPFC_MBOX_TMO * 1000) + jiffies;
+ timeout = secs_to_jiffies(LPFC_MBOX_TMO) + jiffies;
spin_lock_irqsave(&phba->hbalock, iflag);
if (phba->sli.mbox_active) {
actcmd = phba->sli.mbox_active->u.mb.mbxCommand;
@@ -4939,14 +4939,14 @@ int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time)
stat = 1;
goto finished;
}
- if (time >= msecs_to_jiffies(30 * 1000)) {
+ if (time >= secs_to_jiffies(30)) {
lpfc_printf_log(phba, KERN_INFO, LOG_INIT,
"0461 Scanning longer than 30 "
"seconds. Continuing initialization\n");
stat = 1;
goto finished;
}
- if (time >= msecs_to_jiffies(15 * 1000) &&
+ if (time >= secs_to_jiffies(15) &&
phba->link_state <= LPFC_LINK_DOWN) {
lpfc_printf_log(phba, KERN_INFO, LOG_INIT,
"0465 Link down longer than 15 "
@@ -4960,7 +4960,7 @@ int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time)
if (vport->num_disc_nodes || vport->fc_prli_sent)
goto finished;
if (!atomic_read(&vport->fc_map_cnt) &&
- time < msecs_to_jiffies(2 * 1000))
+ time < secs_to_jiffies(2))
goto finished;
if ((phba->sli.sli_flag & LPFC_SLI_MBOX_ACTIVE) != 0)
goto finished;
@@ -5194,8 +5194,8 @@ lpfc_vmid_poll(struct timer_list *t)
lpfc_worker_wake_up(phba);
/* restart the timer for the next iteration */
- mod_timer(&phba->inactive_vmid_poll, jiffies + msecs_to_jiffies(1000 *
- LPFC_VMID_TIMER));
+ mod_timer(&phba->inactive_vmid_poll,
+ jiffies + secs_to_jiffies(LPFC_VMID_TIMER));
}
/**
diff --git a/drivers/scsi/lpfc/lpfc_nportdisc.c b/drivers/scsi/lpfc/lpfc_nportdisc.c
index 4574716c8764fba6d6db103f1f287b7cdb87cebc..4185717f35defbde483b4ff9b1d71c9c3d86a07d 100644
--- a/drivers/scsi/lpfc/lpfc_nportdisc.c
+++ b/drivers/scsi/lpfc/lpfc_nportdisc.c
@@ -914,7 +914,7 @@ lpfc_rcv_logo(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
(ndlp->nlp_state >= NLP_STE_ADISC_ISSUE ||
ndlp->nlp_state <= NLP_STE_PRLI_ISSUE)) {
mod_timer(&ndlp->nlp_delayfunc,
- jiffies + msecs_to_jiffies(1000 * 1));
+ jiffies + secs_to_jiffies(1));
spin_lock_irq(&ndlp->lock);
ndlp->nlp_flag |= NLP_DELAY_TMO;
spin_unlock_irq(&ndlp->lock);
@@ -1355,7 +1355,7 @@ lpfc_rcv_els_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
}
/* Put ndlp in npr state set plogi timer for 1 sec */
- mod_timer(&ndlp->nlp_delayfunc, jiffies + msecs_to_jiffies(1000 * 1));
+ mod_timer(&ndlp->nlp_delayfunc, jiffies + secs_to_jiffies(1));
spin_lock_irq(&ndlp->lock);
ndlp->nlp_flag |= NLP_DELAY_TMO;
spin_unlock_irq(&ndlp->lock);
@@ -1975,7 +1975,7 @@ lpfc_cmpl_reglogin_reglogin_issue(struct lpfc_vport *vport,
/* Put ndlp in npr state set plogi timer for 1 sec */
mod_timer(&ndlp->nlp_delayfunc,
- jiffies + msecs_to_jiffies(1000 * 1));
+ jiffies + secs_to_jiffies(1));
spin_lock_irq(&ndlp->lock);
ndlp->nlp_flag |= NLP_DELAY_TMO;
spin_unlock_irq(&ndlp->lock);
@@ -2798,7 +2798,7 @@ lpfc_rcv_prlo_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
if ((ndlp->nlp_flag & NLP_DELAY_TMO) == 0) {
mod_timer(&ndlp->nlp_delayfunc,
- jiffies + msecs_to_jiffies(1000 * 1));
+ jiffies + secs_to_jiffies(1));
spin_lock_irq(&ndlp->lock);
ndlp->nlp_flag |= NLP_DELAY_TMO;
ndlp->nlp_flag &= ~NLP_NPR_ADISC;
diff --git a/drivers/scsi/lpfc/lpfc_nvme.c b/drivers/scsi/lpfc/lpfc_nvme.c
index fec23c7237304b471e58194726ff7932b0010385..64d7060e0d4cb628c74c0fa22ece2b956155c1ba 100644
--- a/drivers/scsi/lpfc/lpfc_nvme.c
+++ b/drivers/scsi/lpfc/lpfc_nvme.c
@@ -2236,7 +2236,7 @@ lpfc_nvme_lport_unreg_wait(struct lpfc_vport *vport,
* wait. Print a message if a 10 second wait expires and renew the
* wait. This is unexpected.
*/
- wait_tmo = msecs_to_jiffies(LPFC_NVME_WAIT_TMO * 1000);
+ wait_tmo = secs_to_jiffies(LPFC_NVME_WAIT_TMO);
while (true) {
ret = wait_for_completion_timeout(lport_unreg_cmp, wait_tmo);
if (unlikely(!ret)) {
diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c
index 2ec6e55771b45ab70320a9ad1934d5ead2371d4c..b6f19c123e25a00c0eb4444476a7194d6b045824 100644
--- a/drivers/scsi/lpfc/lpfc_sli.c
+++ b/drivers/scsi/lpfc/lpfc_sli.c
@@ -9024,7 +9024,7 @@ lpfc_sli4_hba_setup(struct lpfc_hba *phba)
/* Start heart beat timer */
mod_timer(&phba->hb_tmofunc,
- jiffies + msecs_to_jiffies(1000 * LPFC_HB_MBOX_INTERVAL));
+ jiffies + secs_to_jiffies(LPFC_HB_MBOX_INTERVAL));
clear_bit(HBA_HBEAT_INP, &phba->hba_flag);
clear_bit(HBA_HBEAT_TMO, &phba->hba_flag);
phba->last_completion_time = jiffies;
@@ -13335,7 +13335,7 @@ lpfc_sli_mbox_sys_shutdown(struct lpfc_hba *phba, int mbx_action)
lpfc_sli_mbox_sys_flush(phba);
return;
}
- timeout = msecs_to_jiffies(LPFC_MBOX_TMO * 1000) + jiffies;
+ timeout = secs_to_jiffies(LPFC_MBOX_TMO) + jiffies;
/* Disable softirqs, including timers from obtaining phba->hbalock */
local_bh_disable();
diff --git a/drivers/scsi/lpfc/lpfc_vmid.c b/drivers/scsi/lpfc/lpfc_vmid.c
index cc3e4736f2fe29e1fd4afe221c9c7c40ecf382d4..14dbfe954e423acc47d1b1c80160ff193783f500 100644
--- a/drivers/scsi/lpfc/lpfc_vmid.c
+++ b/drivers/scsi/lpfc/lpfc_vmid.c
@@ -278,7 +278,7 @@ int lpfc_vmid_get_appid(struct lpfc_vport *vport, char *uuid,
if (!(vport->phba->pport->vmid_flag & LPFC_VMID_TIMER_ENBLD)) {
mod_timer(&vport->phba->inactive_vmid_poll,
jiffies +
- msecs_to_jiffies(1000 * LPFC_VMID_TIMER));
+ secs_to_jiffies(LPFC_VMID_TIMER));
vport->phba->pport->vmid_flag |= LPFC_VMID_TIMER_ENBLD;
}
}
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 11/21] scsi: arcmsr: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (9 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 10/21] scsi: lpfc: " Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 12/21] scsi: pm8001: " Easwar Hariharan
` (13 subsequent siblings)
24 siblings, 0 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
drivers/scsi/arcmsr/arcmsr_hba.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c
index 35860c61468b02cdb59aa59376ad5ea9be60d12b..fd797e2785490839713f9242014f0adefccc6ddd 100644
--- a/drivers/scsi/arcmsr/arcmsr_hba.c
+++ b/drivers/scsi/arcmsr/arcmsr_hba.c
@@ -1044,7 +1044,7 @@ static void arcmsr_init_get_devmap_timer(struct AdapterControlBlock *pacb)
static void arcmsr_init_set_datetime_timer(struct AdapterControlBlock *pacb)
{
timer_setup(&pacb->refresh_timer, arcmsr_set_iop_datetime, 0);
- pacb->refresh_timer.expires = jiffies + msecs_to_jiffies(60 * 1000);
+ pacb->refresh_timer.expires = jiffies + secs_to_jiffies(60);
add_timer(&pacb->refresh_timer);
}
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 12/21] scsi: pm8001: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (10 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 11/21] scsi: arcmsr: " Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 13/21] xen/blkback: " Easwar Hariharan
` (12 subsequent siblings)
24 siblings, 0 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
drivers/scsi/pm8001/pm8001_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c
index 33e1eba62ca12c2555419197ecdbebad817e4a6d..be88890716cc152b4687edf5e204d14bd177e188 100644
--- a/drivers/scsi/pm8001/pm8001_init.c
+++ b/drivers/scsi/pm8001/pm8001_init.c
@@ -734,7 +734,7 @@ static int pm8001_init_sas_add(struct pm8001_hba_info *pm8001_ha)
return -EIO;
}
time_remaining = wait_for_completion_timeout(&completion,
- msecs_to_jiffies(60*1000)); // 1 min
+ secs_to_jiffies(60)); // 1 min
if (!time_remaining) {
kfree(payload.func_specific);
pm8001_dbg(pm8001_ha, FAIL, "get_nvmd_req timeout\n");
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 13/21] xen/blkback: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (11 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 12/21] scsi: pm8001: " Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 14/21] gve: " Easwar Hariharan
` (11 subsequent siblings)
24 siblings, 0 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
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;
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 14/21] gve: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (12 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 13/21] xen/blkback: " Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 15/21] wifi: ath11k: " Easwar Hariharan
` (10 subsequent siblings)
24 siblings, 0 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
drivers/net/ethernet/google/gve/gve_tx_dqo.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/google/gve/gve_tx_dqo.c b/drivers/net/ethernet/google/gve/gve_tx_dqo.c
index f879426cb5523a7e150f363b5e57b9d472b5817c..394debc62268aadf2579f9b516e045cb48287e7c 100644
--- a/drivers/net/ethernet/google/gve/gve_tx_dqo.c
+++ b/drivers/net/ethernet/google/gve/gve_tx_dqo.c
@@ -1146,8 +1146,7 @@ static void gve_handle_miss_completion(struct gve_priv *priv,
/* jiffies can wraparound but time comparisons can handle overflows. */
pending_packet->timeout_jiffies =
jiffies +
- msecs_to_jiffies(GVE_REINJECT_COMPL_TIMEOUT *
- MSEC_PER_SEC);
+ secs_to_jiffies(GVE_REINJECT_COMPL_TIMEOUT);
add_to_list(tx, &tx->dqo_compl.miss_completions, pending_packet);
*bytes += pending_packet->skb->len;
@@ -1191,8 +1190,7 @@ static void remove_miss_completions(struct gve_priv *priv,
pending_packet->state = GVE_PACKET_STATE_TIMED_OUT_COMPL;
pending_packet->timeout_jiffies =
jiffies +
- msecs_to_jiffies(GVE_DEALLOCATE_COMPL_TIMEOUT *
- MSEC_PER_SEC);
+ secs_to_jiffies(GVE_DEALLOCATE_COMPL_TIMEOUT);
/* Maintain pending packet in another list so the packet can be
* unallocated at a later time.
*/
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 15/21] wifi: ath11k: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (13 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 14/21] gve: " Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-15 22:59 ` Jeff Johnson
2024-11-15 21:26 ` [PATCH v2 16/21] Bluetooth: MGMT: " Easwar Hariharan
` (9 subsequent siblings)
24 siblings, 1 reply; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
drivers/net/wireless/ath/ath11k/debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath11k/debugfs.c b/drivers/net/wireless/ath/ath11k/debugfs.c
index 57281a135dd7fa6b8610636f47873c8bba21053c..bf192529e3fe26a91e72105a77b4c6f849b905ec 100644
--- a/drivers/net/wireless/ath/ath11k/debugfs.c
+++ b/drivers/net/wireless/ath/ath11k/debugfs.c
@@ -178,7 +178,7 @@ static int ath11k_debugfs_fw_stats_request(struct ath11k *ar,
* received 'update stats' event, we keep a 3 seconds timeout in case,
* fw_stats_done is not marked yet
*/
- timeout = jiffies + msecs_to_jiffies(3 * 1000);
+ timeout = jiffies + secs_to_jiffies(3);
ath11k_debugfs_fw_stats_reset(ar);
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 16/21] Bluetooth: MGMT: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (14 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 15/21] wifi: ath11k: " Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 17/21] staging: vc04_services: " Easwar Hariharan
` (8 subsequent siblings)
24 siblings, 0 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
net/bluetooth/mgmt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index a429661b676a83ec2d34ed7e228195f39a153f9f..ca89c26d04ec64869e6b99de099d343f4c548ce5 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -209,7 +209,7 @@ static const u16 mgmt_untrusted_events[] = {
MGMT_EV_EXP_FEATURE_CHANGED,
};
-#define CACHE_TIMEOUT msecs_to_jiffies(2 * 1000)
+#define CACHE_TIMEOUT secs_to_jiffies(2)
#define ZERO_KEY "\x00\x00\x00\x00\x00\x00\x00\x00" \
"\x00\x00\x00\x00\x00\x00\x00\x00"
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 17/21] staging: vc04_services: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (15 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 16/21] Bluetooth: MGMT: " Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 18/21] ceph: " Easwar Hariharan
` (7 subsequent siblings)
24 siblings, 0 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c
index 133ed15f3dbcc07dc353c22d8522e11a08ee6f46..6bb2562e071c4e623e51852860c682e047f823df 100644
--- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c
+++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c
@@ -59,7 +59,7 @@ static int bcm2835_audio_send_msg_locked(struct bcm2835_audio_instance *instance
if (wait) {
if (!wait_for_completion_timeout(&instance->msg_avail_comp,
- msecs_to_jiffies(10 * 1000))) {
+ secs_to_jiffies(10))) {
dev_err(instance->dev,
"vchi message timeout, msg=%d\n", m->type);
return -ETIMEDOUT;
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 18/21] ceph: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (16 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 17/21] staging: vc04_services: " Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-28 12:28 ` Alex Markuze
2024-11-15 21:26 ` [PATCH v2 19/21] livepatch: " Easwar Hariharan
` (6 subsequent siblings)
24 siblings, 1 reply; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
fs/ceph/quota.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ceph/quota.c b/fs/ceph/quota.c
index 06ee397e0c3a6172592e62dba95cd267cfff0db1..d90eda19bcc4618f98bfed833c10a6071cf2e2ac 100644
--- a/fs/ceph/quota.c
+++ b/fs/ceph/quota.c
@@ -166,7 +166,7 @@ static struct inode *lookup_quotarealm_inode(struct ceph_mds_client *mdsc,
if (IS_ERR(in)) {
doutc(cl, "Can't lookup inode %llx (err: %ld)\n", realm->ino,
PTR_ERR(in));
- qri->timeout = jiffies + msecs_to_jiffies(60 * 1000); /* XXX */
+ qri->timeout = jiffies + secs_to_jiffies(60); /* XXX */
} else {
qri->timeout = 0;
qri->inode = in;
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 19/21] livepatch: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (17 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 18/21] ceph: " Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-16 10:10 ` Christophe Leroy
2024-11-15 21:26 ` [PATCH v2 20/21] ALSA: line6: " Easwar Hariharan
` (5 subsequent siblings)
24 siblings, 1 reply; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
samples/livepatch/livepatch-callbacks-busymod.c | 2 +-
samples/livepatch/livepatch-shadow-fix1.c | 2 +-
samples/livepatch/livepatch-shadow-mod.c | 10 +++++-----
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/samples/livepatch/livepatch-callbacks-busymod.c b/samples/livepatch/livepatch-callbacks-busymod.c
index 378e2d40271a9717d09eff51d3d3612c679736fc..d0fd801a7c21b7d7939c29d83f9d993badcc9aba 100644
--- a/samples/livepatch/livepatch-callbacks-busymod.c
+++ b/samples/livepatch/livepatch-callbacks-busymod.c
@@ -45,7 +45,7 @@ static int livepatch_callbacks_mod_init(void)
{
pr_info("%s\n", __func__);
schedule_delayed_work(&work,
- msecs_to_jiffies(1000 * 0));
+ secs_to_jiffies(0));
return 0;
}
diff --git a/samples/livepatch/livepatch-shadow-fix1.c b/samples/livepatch/livepatch-shadow-fix1.c
index 6701641bf12d454a770e49abeeb0dea92560e55e..948ea1f5760fed2fa27baf478c97cf98ad5c99a8 100644
--- a/samples/livepatch/livepatch-shadow-fix1.c
+++ b/samples/livepatch/livepatch-shadow-fix1.c
@@ -73,7 +73,7 @@ static struct dummy *livepatch_fix1_dummy_alloc(void)
return NULL;
d->jiffies_expire = jiffies +
- msecs_to_jiffies(1000 * EXPIRE_PERIOD);
+ secs_to_jiffies(EXPIRE_PERIOD);
/*
* Patch: save the extra memory location into a SV_LEAK shadow
diff --git a/samples/livepatch/livepatch-shadow-mod.c b/samples/livepatch/livepatch-shadow-mod.c
index 7e753b0d2fa611524c9e2adbe02c8fa3e9b6015e..79296e6ccb119f521e86a121623855d841c9fc5e 100644
--- a/samples/livepatch/livepatch-shadow-mod.c
+++ b/samples/livepatch/livepatch-shadow-mod.c
@@ -102,7 +102,7 @@ static __used noinline struct dummy *dummy_alloc(void)
return NULL;
d->jiffies_expire = jiffies +
- msecs_to_jiffies(1000 * EXPIRE_PERIOD);
+ secs_to_jiffies(EXPIRE_PERIOD);
/* Oops, forgot to save leak! */
leak = kzalloc(sizeof(*leak), GFP_KERNEL);
@@ -153,7 +153,7 @@ static void alloc_work_func(struct work_struct *work)
mutex_unlock(&dummy_list_mutex);
schedule_delayed_work(&alloc_dwork,
- msecs_to_jiffies(1000 * ALLOC_PERIOD));
+ secs_to_jiffies(ALLOC_PERIOD));
}
/*
@@ -185,15 +185,15 @@ static void cleanup_work_func(struct work_struct *work)
mutex_unlock(&dummy_list_mutex);
schedule_delayed_work(&cleanup_dwork,
- msecs_to_jiffies(1000 * CLEANUP_PERIOD));
+ secs_to_jiffies(CLEANUP_PERIOD));
}
static int livepatch_shadow_mod_init(void)
{
schedule_delayed_work(&alloc_dwork,
- msecs_to_jiffies(1000 * ALLOC_PERIOD));
+ secs_to_jiffies(ALLOC_PERIOD));
schedule_delayed_work(&cleanup_dwork,
- msecs_to_jiffies(1000 * CLEANUP_PERIOD));
+ secs_to_jiffies(CLEANUP_PERIOD));
return 0;
}
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 20/21] ALSA: line6: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (18 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 19/21] livepatch: " Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 21/21] nfp: " Easwar Hariharan
` (4 subsequent siblings)
24 siblings, 0 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
sound/usb/line6/toneport.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/usb/line6/toneport.c b/sound/usb/line6/toneport.c
index ca2c6f5de407ece21ab69a39ed603e3f10069039..c073b38cd6738176fc6a276d05ed553526573341 100644
--- a/sound/usb/line6/toneport.c
+++ b/sound/usb/line6/toneport.c
@@ -386,7 +386,7 @@ static int toneport_setup(struct usb_line6_toneport *toneport)
toneport_update_led(toneport);
schedule_delayed_work(&toneport->line6.startup_work,
- msecs_to_jiffies(TONEPORT_PCM_DELAY * 1000));
+ secs_to_jiffies(TONEPORT_PCM_DELAY));
return 0;
}
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* [PATCH v2 21/21] nfp: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (19 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 20/21] ALSA: line6: " Easwar Hariharan
@ 2024-11-15 21:26 ` Easwar Hariharan
2024-11-16 10:13 ` Christophe Leroy
2024-11-15 21:29 ` [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (3 subsequent siblings)
24 siblings, 1 reply; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:26 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Easwar Hariharan
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 <eahariha@linux.microsoft.com>
---
drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c
index 6e0929af0f725b2b3855c69bbe894e6626c566b3..6925ad985fc9e2d5641feea41ff277107a8dee9c 100644
--- a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c
+++ b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c
@@ -2779,7 +2779,7 @@ static void nfp_net_netdev_init(struct nfp_net *nn)
break;
}
- netdev->watchdog_timeo = msecs_to_jiffies(5 * 1000);
+ netdev->watchdog_timeo = secs_to_jiffies(5);
/* MTU range: 68 - hw-specific max */
netdev->min_mtu = ETH_MIN_MTU;
--
2.34.1
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (20 preceding siblings ...)
2024-11-15 21:26 ` [PATCH v2 21/21] nfp: " Easwar Hariharan
@ 2024-11-15 21:29 ` Easwar Hariharan
2024-11-15 21:41 ` Jeff Johnson
2024-11-16 7:46 ` Christophe Leroy
2024-11-16 10:16 ` Christophe Leroy
` (2 subsequent siblings)
24 siblings, 2 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 21:29 UTC (permalink / raw)
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, Thomas Hellströ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,
Roger Pau Monné,
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: eahariha, netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
On 11/15/2024 1:26 PM, Easwar Hariharan wrote:
> This is a series that follows up on my previous series to introduce
> secs_to_jiffies() and convert a few initial users.[1] In the review for
> that series, Anna-Maria requested converting other users with
> Coccinelle. This is part 1 that converts users of msecs_to_jiffies()
> that use the multiply pattern of either of:
> - msecs_to_jiffies(N*1000), or
> - msecs_to_jiffies(N*MSEC_PER_SEC)
>
> The entire conversion is made with Coccinelle in the script added in
> patch 2. Some changes suggested by Coccinelle have been deferred to
> later parts that will address other possible variant patterns.
>
> CC: Anna-Maria Behnsen <anna-maria@linutronix.de>
> Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
>
> [1] https://lore.kernel.org/all/20241030-open-coded-timeouts-v3-0-9ba123facf88@linux.microsoft.com/
> [2] https://lore.kernel.org/all/8734kngfni.fsf@somnus/
>
> ---
> Changes in v2:
> - EDITME: describe what is new in this series revision.
> - EDITME: use bulletpoints and terse descriptions.
> - Link to v1: https://lore.kernel.org/r/20241115-converge-secs-to-jiffies-v1-0-19aadc34941b@linux.microsoft.com
>
Apologies, I missed out on editing the changelog here. v1 included a
patch that's already been accepted, there are no other changes in v2.
Thanks,
Easwar
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()
2024-11-15 21:29 ` [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
@ 2024-11-15 21:41 ` Jeff Johnson
2024-11-15 22:15 ` Easwar Hariharan
2024-11-16 7:46 ` Christophe Leroy
1 sibling, 1 reply; 59+ messages in thread
From: Jeff Johnson @ 2024-11-15 21:41 UTC (permalink / raw)
To: Easwar Hariharan, 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,
Thomas Hellströ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, Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
On 11/15/2024 1:29 PM, Easwar Hariharan wrote:
> On 11/15/2024 1:26 PM, Easwar Hariharan wrote:
>> This is a series that follows up on my previous series to introduce
>> secs_to_jiffies() and convert a few initial users.[1] In the review for
>> that series, Anna-Maria requested converting other users with
>> Coccinelle. This is part 1 that converts users of msecs_to_jiffies()
>> that use the multiply pattern of either of:
>> - msecs_to_jiffies(N*1000), or
>> - msecs_to_jiffies(N*MSEC_PER_SEC)
>>
>> The entire conversion is made with Coccinelle in the script added in
>> patch 2. Some changes suggested by Coccinelle have been deferred to
>> later parts that will address other possible variant patterns.
>>
>> CC: Anna-Maria Behnsen <anna-maria@linutronix.de>
>> Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
>>
>> [1] https://lore.kernel.org/all/20241030-open-coded-timeouts-v3-0-9ba123facf88@linux.microsoft.com/
>> [2] https://lore.kernel.org/all/8734kngfni.fsf@somnus/
>>
>> ---
>> Changes in v2:
>> - EDITME: describe what is new in this series revision.
>> - EDITME: use bulletpoints and terse descriptions.
>> - Link to v1: https://lore.kernel.org/r/20241115-converge-secs-to-jiffies-v1-0-19aadc34941b@linux.microsoft.com
>>
>
> Apologies, I missed out on editing the changelog here. v1 included a
> patch that's already been accepted, there are no other changes in v2.
>
> Thanks,
> Easwar
How do you expect this series to land since it overlaps a large number of
maintainer trees? Do you have a maintainer who has volunteered to take the
series and the maintainers should just ack? Or do you want the maintainers to
take the individual patches that are applicable to them?
/jeff
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()
2024-11-15 21:41 ` Jeff Johnson
@ 2024-11-15 22:15 ` Easwar Hariharan
2024-11-15 23:20 ` Thomas Gleixner
0 siblings, 1 reply; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-15 22:15 UTC (permalink / raw)
To: Jeff Johnson, Thomas Gleixner
Cc: eahariha, netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Madhavan Srinivasan, Naveen N Rao,
Christophe Leroy, Louis Peens, Nicholas Piggin, Michael Ellerman,
Christian Gmeiner, Russell King, Lucas Stach, Takashi Iwai,
Jaroslav Kysela, Petr Mladek, Joe Lawrence, Miroslav Benes,
Jiri Kosina, Josh Poimboeuf, Ilya Dryomov, Xiubo Li,
Broadcom internal kernel review list, Scott Branden, Ray Jui,
Florian Fainelli, Greg Kroah-Hartman, Luiz Augusto von Dentz,
Johan Hedberg, Jens Axboe, Marcel Holtmann, Kalle Valo,
Jeff Johnson, Catalin Marinas, Roger Pau Monné,
Jack Wang, Andrew Morton, Martin K. Petersen,
Praveen Kaligineedi, Andrew Lunn, James Smart, Dick Kennedy,
James E.J. Bottomley, Maxime Ripard, David Airlie, Simona Vetter,
Jeroen de Borst, Shailend Chand, Thomas Zimmermann,
Maarten Lankhorst, Rodrigo Vivi, Thomas Hellström,
Lucas De Marchi, Oded Gabbay, Ofir Bitton, Sven Schnelle,
Christian Borntraeger, Alexander Gordeev, Vasily Gorbik,
Heiko Carstens, Russell King, Robert Jarzmik, Haojian Zhuang,
Daniel Mack, Nicolas Palix, Julia Lawall, Simon Horman,
Paolo Abeni, Jakub Kicinski, Eric Dumazet, David S. Miller,
Jozsef Kadlecsik, Pablo Neira Ayuso
On 11/15/2024 1:41 PM, Jeff Johnson wrote:
> On 11/15/2024 1:29 PM, Easwar Hariharan wrote:
>> On 11/15/2024 1:26 PM, Easwar Hariharan wrote:
>>> This is a series that follows up on my previous series to introduce
>>> secs_to_jiffies() and convert a few initial users.[1] In the review for
>>> that series, Anna-Maria requested converting other users with
>>> Coccinelle. This is part 1 that converts users of msecs_to_jiffies()
>>> that use the multiply pattern of either of:
>>> - msecs_to_jiffies(N*1000), or
>>> - msecs_to_jiffies(N*MSEC_PER_SEC)
>>>
>>> The entire conversion is made with Coccinelle in the script added in
>>> patch 2. Some changes suggested by Coccinelle have been deferred to
>>> later parts that will address other possible variant patterns.
>>>
>>> CC: Anna-Maria Behnsen <anna-maria@linutronix.de>
>>> Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
>>>
>>> [1] https://lore.kernel.org/all/20241030-open-coded-timeouts-v3-0-9ba123facf88@linux.microsoft.com/
>>> [2] https://lore.kernel.org/all/8734kngfni.fsf@somnus/
>>>
>>> ---
>>> Changes in v2:
>>> - EDITME: describe what is new in this series revision.
>>> - EDITME: use bulletpoints and terse descriptions.
>>> - Link to v1: https://lore.kernel.org/r/20241115-converge-secs-to-jiffies-v1-0-19aadc34941b@linux.microsoft.com
>>>
>>
>> Apologies, I missed out on editing the changelog here. v1 included a
>> patch that's already been accepted, there are no other changes in v2.
>>
>> Thanks,
>> Easwar
>
> How do you expect this series to land since it overlaps a large number of
> maintainer trees? Do you have a maintainer who has volunteered to take the
> series and the maintainers should just ack? Or do you want the maintainers to
> take the individual patches that are applicable to them?
>
> /jeff
I am hoping for tglx to take it through his tree since the patch
introducing secs_to_jiffies() is in his tree, so sequencing of
dependencies would not be an issue.
But if tglx won't, we could push it out another cycle and individual
maintainers can take the patches that are applicable to their tree for
the series.
Thanks,
Easwar
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 01/21] netfilter: conntrack: Cleanup timeout definitions
2024-11-15 21:26 ` [PATCH v2 01/21] netfilter: conntrack: Cleanup timeout definitions Easwar Hariharan
@ 2024-11-15 22:34 ` Stephen Rothwell
2024-11-16 0:13 ` Easwar Hariharan
2024-11-16 9:40 ` Christophe Leroy
1 sibling, 1 reply; 59+ messages in thread
From: Stephen Rothwell @ 2024-11-15 22:34 UTC (permalink / raw)
To: Easwar Hariharan
Cc: 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, Thomas Hellströ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,
Roger Pau Monné,
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, netfilter-devel, coreteam,
netdev, linux-kernel, cocci, linux-arm-kernel, linux-s390,
dri-devel, intel-xe, linux-scsi, xen-devel, linux-block,
linux-wireless, ath11k, linux-mm, linux-bluetooth, linux-staging,
linux-rpi-kernel, ceph-devel, live-patching, linux-sound,
etnaviv, oss-drivers, linuxppc-dev, Anna-Maria Behnsen
[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]
Hi Easwar,
On Fri, 15 Nov 2024 21:26:18 +0000 Easwar Hariharan <eahariha@linux.microsoft.com> wrote:
>
> static const unsigned int sctp_timeouts[SCTP_CONNTRACK_MAX] = {
> - [SCTP_CONNTRACK_CLOSED] = 10 SECS,
> - [SCTP_CONNTRACK_COOKIE_WAIT] = 3 SECS,
> - [SCTP_CONNTRACK_COOKIE_ECHOED] = 3 SECS,
> - [SCTP_CONNTRACK_ESTABLISHED] = 210 SECS,
> - [SCTP_CONNTRACK_SHUTDOWN_SENT] = 3 SECS,
> - [SCTP_CONNTRACK_SHUTDOWN_RECD] = 3 SECS,
> - [SCTP_CONNTRACK_SHUTDOWN_ACK_SENT] = 3 SECS,
> - [SCTP_CONNTRACK_HEARTBEAT_SENT] = 30 SECS,
> + [SCTP_CONNTRACK_CLOSED] = secs_to_jiffies(10),
> + [SCTP_CONNTRACK_COOKIE_WAIT] = secs_to_jiffies(3),
> + [SCTP_CONNTRACK_COOKIE_ECHOED] = secs_to_jiffies(3),
> + [SCTP_CONNTRACK_ESTABLISHED] = secs_to_jiffies(210),
> + [SCTP_CONNTRACK_SHUTDOWN_SENT] = secs_to_jiffies(3),
> + [SCTP_CONNTRACK_SHUTDOWN_RECD] = secs_to_jiffies(3),
> + [SCTP_CONNTRACK_SHUTDOWN_ACK_SENT] = secs_to_jiffies(3),
> + [SCTP_CONNTRACK_HEARTBEAT_SENT] = secs_to_jiffies(3),
You have changed this last timeout from 30 seconds to 3 (presumably
just a copy and paste error).
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 15/21] wifi: ath11k: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 ` [PATCH v2 15/21] wifi: ath11k: " Easwar Hariharan
@ 2024-11-15 22:59 ` Jeff Johnson
0 siblings, 0 replies; 59+ messages in thread
From: Jeff Johnson @ 2024-11-15 22:59 UTC (permalink / raw)
To: Easwar Hariharan, 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,
Thomas Hellströ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, Roger Pau Monné,
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, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
On 11/15/2024 1:26 PM, Easwar Hariharan wrote:
> 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 <eahariha@linux.microsoft.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
> ---
> drivers/net/wireless/ath/ath11k/debugfs.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/wireless/ath/ath11k/debugfs.c b/drivers/net/wireless/ath/ath11k/debugfs.c
> index 57281a135dd7fa6b8610636f47873c8bba21053c..bf192529e3fe26a91e72105a77b4c6f849b905ec 100644
> --- a/drivers/net/wireless/ath/ath11k/debugfs.c
> +++ b/drivers/net/wireless/ath/ath11k/debugfs.c
> @@ -178,7 +178,7 @@ static int ath11k_debugfs_fw_stats_request(struct ath11k *ar,
> * received 'update stats' event, we keep a 3 seconds timeout in case,
> * fw_stats_done is not marked yet
> */
> - timeout = jiffies + msecs_to_jiffies(3 * 1000);
> + timeout = jiffies + secs_to_jiffies(3);
>
> ath11k_debugfs_fw_stats_reset(ar);
>
>
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()
2024-11-15 22:15 ` Easwar Hariharan
@ 2024-11-15 23:20 ` Thomas Gleixner
0 siblings, 0 replies; 59+ messages in thread
From: Thomas Gleixner @ 2024-11-15 23:20 UTC (permalink / raw)
To: Easwar Hariharan, Jeff Johnson
Cc: eahariha, netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, Madhavan Srinivasan, Naveen N Rao,
Christophe Leroy, Louis Peens, Nicholas Piggin, Michael Ellerman,
Christian Gmeiner, Russell King, Lucas Stach, Takashi Iwai,
Jaroslav Kysela, Petr Mladek, Joe Lawrence, Miroslav Benes,
Jiri Kosina, Josh Poimboeuf, Ilya Dryomov, Xiubo Li,
Broadcom internal kernel review list, Scott Branden, Ray Jui,
Florian Fainelli, Greg Kroah-Hartman, Luiz Augusto von Dentz,
Johan Hedberg, Jens Axboe, Marcel Holtmann, Kalle Valo,
Jeff Johnson, Catalin Marinas, Roger Pau Monné,
Jack Wang, Andrew Morton, Martin K. Petersen,
Praveen Kaligineedi, Andrew Lunn, James Smart, Dick Kennedy,
James E.J. Bottomley, Maxime Ripard, David Airlie, Simona Vetter,
Jeroen de Borst, Shailend Chand, Thomas Zimmermann,
Maarten Lankhorst, Rodrigo Vivi, Thomas Hellström,
Lucas De Marchi, Oded Gabbay, Ofir Bitton, Sven Schnelle,
Christian Borntraeger, Alexander Gordeev, Vasily Gorbik,
Heiko Carstens, Russell King, Robert Jarzmik, Haojian Zhuang,
Daniel Mack, Nicolas Palix, Julia Lawall, Simon Horman,
Paolo Abeni, Jakub Kicinski, Eric Dumazet, David S. Miller,
Jozsef Kadlecsik, Pablo Neira Ayuso
On Fri, Nov 15 2024 at 14:15, Easwar Hariharan wrote:
> On 11/15/2024 1:41 PM, Jeff Johnson wrote:
>>
>> How do you expect this series to land since it overlaps a large number of
>> maintainer trees? Do you have a maintainer who has volunteered to take the
>> series and the maintainers should just ack? Or do you want the maintainers to
>> take the individual patches that are applicable to them?
>>
>> /jeff
>
> I am hoping for tglx to take it through his tree since the patch
> introducing secs_to_jiffies() is in his tree, so sequencing of
> dependencies would not be an issue.
Right, but it's two days before the merge window opens, so no.
> But if tglx won't, we could push it out another cycle and individual
> maintainers can take the patches that are applicable to their tree for
> the series.
That's the easiest way forward as it does not create conflicts and all
maintainers will have the base patch in their trees after rc1.
Thanks,
tglx
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 01/21] netfilter: conntrack: Cleanup timeout definitions
2024-11-15 22:34 ` Stephen Rothwell
@ 2024-11-16 0:13 ` Easwar Hariharan
0 siblings, 0 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-16 0:13 UTC (permalink / raw)
To: Stephen Rothwell
Cc: eahariha, 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, Thomas Hellströ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,
Roger Pau Monné,
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, netfilter-devel, coreteam,
netdev, linux-kernel, cocci, linux-arm-kernel, linux-s390,
dri-devel, intel-xe, linux-scsi, xen-devel, linux-block,
linux-wireless, ath11k, linux-mm, linux-bluetooth, linux-staging,
linux-rpi-kernel, ceph-devel, live-patching, linux-sound,
etnaviv, oss-drivers, linuxppc-dev, Anna-Maria Behnsen
On 11/15/2024 2:34 PM, Stephen Rothwell wrote:
> Hi Easwar,
>
> On Fri, 15 Nov 2024 21:26:18 +0000 Easwar Hariharan <eahariha@linux.microsoft.com> wrote:
>>
>> static const unsigned int sctp_timeouts[SCTP_CONNTRACK_MAX] = {
>> - [SCTP_CONNTRACK_CLOSED] = 10 SECS,
>> - [SCTP_CONNTRACK_COOKIE_WAIT] = 3 SECS,
>> - [SCTP_CONNTRACK_COOKIE_ECHOED] = 3 SECS,
>> - [SCTP_CONNTRACK_ESTABLISHED] = 210 SECS,
>> - [SCTP_CONNTRACK_SHUTDOWN_SENT] = 3 SECS,
>> - [SCTP_CONNTRACK_SHUTDOWN_RECD] = 3 SECS,
>> - [SCTP_CONNTRACK_SHUTDOWN_ACK_SENT] = 3 SECS,
>> - [SCTP_CONNTRACK_HEARTBEAT_SENT] = 30 SECS,
>> + [SCTP_CONNTRACK_CLOSED] = secs_to_jiffies(10),
>> + [SCTP_CONNTRACK_COOKIE_WAIT] = secs_to_jiffies(3),
>> + [SCTP_CONNTRACK_COOKIE_ECHOED] = secs_to_jiffies(3),
>> + [SCTP_CONNTRACK_ESTABLISHED] = secs_to_jiffies(210),
>> + [SCTP_CONNTRACK_SHUTDOWN_SENT] = secs_to_jiffies(3),
>> + [SCTP_CONNTRACK_SHUTDOWN_RECD] = secs_to_jiffies(3),
>> + [SCTP_CONNTRACK_SHUTDOWN_ACK_SENT] = secs_to_jiffies(3),
>> + [SCTP_CONNTRACK_HEARTBEAT_SENT] = secs_to_jiffies(3),
>
> You have changed this last timeout from 30 seconds to 3 (presumably
> just a copy and paste error).
>
Will fix in v3.
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 02/21] coccinelle: misc: Add secs_to_jiffies script
2024-11-15 21:26 ` [PATCH v2 02/21] coccinelle: misc: Add secs_to_jiffies script Easwar Hariharan
@ 2024-11-16 6:05 ` Christophe JAILLET
2024-11-18 18:09 ` Easwar Hariharan
2024-11-16 9:52 ` Christophe Leroy
2024-11-16 10:23 ` [cocci] " Markus Elfring
2 siblings, 1 reply; 59+ messages in thread
From: Christophe JAILLET @ 2024-11-16 6:05 UTC (permalink / raw)
To: eahariha
Cc: James.Bottomley, Julia.Lawall, agordeev, airlied, akpm,
andrew+netdev, anna-maria, ath11k, axboe,
bcm-kernel-feedback-list, borntraeger, catalin.marinas,
ceph-devel, christian.gmeiner, christophe.leroy, cocci, coreteam,
daniel, davem, dick.kennedy, dri-devel, edumazet, etnaviv,
florian.fainelli, gor, gregkh, haojian.zhuang, hca, horms,
idryomov, intel-xe, james.smart, jeroendb, jikos, jinpu.wang,
jjohnson, joe.lawrence, johan.hedberg, jpoimboe, kadlec, kuba,
kvalo, l.stach, linux+etnaviv, linux-arm-kernel, linux-block,
linux-bluetooth, linux-kernel, linux-mm, linux-rpi-kernel,
linux-s390, linux-scsi, linux-sound, linux-staging,
linux-wireless, linux, linuxppc-dev, live-patching, louis.peens,
lucas.demarchi, luiz.dentz, maarten.lankhorst, maddy, marcel,
martin.petersen, mbenes, mpe, mripard, naveen, netdev,
netfilter-devel, nicolas.palix, npiggin, obitton, ogabbay,
oss-drivers, pabeni, pablo, perex, pkaligineedi, pmladek, rjui,
robert.jarzmik, rodrigo.vivi, roger.pau, sbranden, shailend,
simona, svens, thomas.hellstrom, tiwai, tzimmermann, xen-devel,
xiubli
Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
> Suggested-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
> Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
> ---
> scripts/coccinelle/misc/secs_to_jiffies.cocci | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/scripts/coccinelle/misc/secs_to_jiffies.cocci b/scripts/coccinelle/misc/secs_to_jiffies.cocci
> new file mode 100644
> index 0000000000000000000000000000000000000000..af762b1c0aac8f044f21150bfaafd9efc834ee87
> --- /dev/null
> +++ b/scripts/coccinelle/misc/secs_to_jiffies.cocci
> @@ -0,0 +1,21 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +///
> +/// Find usages of:
> +/// - msecs_to_jiffies(value*1000)
> +/// - msecs_to_jiffies(value*MSEC_PER_SEC)
> +///
> +// Confidence: High
> +// Copyright: (C) 2024 Easwar Hariharan Microsoft
> +//
> +// Keywords: secs, seconds, jiffies
> +//
> +
> +@@ constant C; @@
> +
> +- msecs_to_jiffies(C * 1000)
> ++ secs_to_jiffies(C)
> +
> +@@ constant C; @@
> +
> +- msecs_to_jiffies(C * MSEC_PER_SEC)
> ++ secs_to_jiffies(C)
>
Hi,
@@ constant C =~ "000"; @@
* msecs_to_jiffies(C)
also spots things like msecs_to_jiffies(1000)
I'm not sure that coccinelle is enable to capture part of the regex to automate the removal of the 000 when converting from ms to s.
Just my 2c,
CJ
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()
2024-11-15 21:29 ` [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
2024-11-15 21:41 ` Jeff Johnson
@ 2024-11-16 7:46 ` Christophe Leroy
1 sibling, 0 replies; 59+ messages in thread
From: Christophe Leroy @ 2024-11-16 7:46 UTC (permalink / raw)
To: Easwar Hariharan, 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,
Thomas Hellströ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, Roger Pau Monné,
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, Naveen N Rao,
Madhavan Srinivasan
Cc: netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
Le 15/11/2024 à 22:29, Easwar Hariharan a écrit :
> [Vous ne recevez pas souvent de courriers de eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
>
> On 11/15/2024 1:26 PM, Easwar Hariharan wrote:
>> This is a series that follows up on my previous series to introduce
>> secs_to_jiffies() and convert a few initial users.[1] In the review for
>> that series, Anna-Maria requested converting other users with
>> Coccinelle. This is part 1 that converts users of msecs_to_jiffies()
>> that use the multiply pattern of either of:
>> - msecs_to_jiffies(N*1000), or
>> - msecs_to_jiffies(N*MSEC_PER_SEC)
>>
>> The entire conversion is made with Coccinelle in the script added in
>> patch 2. Some changes suggested by Coccinelle have been deferred to
>> later parts that will address other possible variant patterns.
>>
>> CC: Anna-Maria Behnsen <anna-maria@linutronix.de>
>> Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
>>
>> [1] https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fall%2F20241030-open-coded-timeouts-v3-0-9ba123facf88%40linux.microsoft.com%2F&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7Cff4857ad28a74e7051f708dd05bc8d45%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638673029556700628%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=q%2FHm%2Fal%2FBtK5J4nd%2BqJHNeSJ3f%2B0lVCKzigUUoL2vjw%3D&reserved=0
>> [2] https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fall%2F8734kngfni.fsf%40somnus%2F&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7Cff4857ad28a74e7051f708dd05bc8d45%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638673029556721028%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=PZiR%2B9GSo3Zk7cD85MyM4ZpqvIQtD0lSxd4G1gZ4UFE%3D&reserved=0
>>
>> ---
>> Changes in v2:
>> - EDITME: describe what is new in this series revision.
>> - EDITME: use bulletpoints and terse descriptions.
>> - Link to v1: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fr%2F20241115-converge-secs-to-jiffies-v1-0-19aadc34941b%40linux.microsoft.com&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7Cff4857ad28a74e7051f708dd05bc8d45%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638673029556732854%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=NXdY%2FTuSufEPcy4ijIj%2F0%2BW3K%2FhkLs2JGu5C1WFMPOM%3D&reserved=0
>>
>
> Apologies, I missed out on editing the changelog here. v1 included a
> patch that's already been accepted, there are no other changes in v2.
You should refrain from sending such a patch bomb twice in 4 minutes. If
there is no other change you could have just replied to that already
included patch to say so.
In any case wait a few days so that people have time to review and
provide comments.
Christophe
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 01/21] netfilter: conntrack: Cleanup timeout definitions
2024-11-15 21:26 ` [PATCH v2 01/21] netfilter: conntrack: Cleanup timeout definitions Easwar Hariharan
2024-11-15 22:34 ` Stephen Rothwell
@ 2024-11-16 9:40 ` Christophe Leroy
2024-11-18 18:13 ` Easwar Hariharan
1 sibling, 1 reply; 59+ messages in thread
From: Christophe Leroy @ 2024-11-16 9:40 UTC (permalink / raw)
To: Easwar Hariharan, 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,
Thomas Hellströ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, Roger Pau Monné,
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, Naveen N Rao,
Madhavan Srinivasan
Cc: netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
> [Vous ne recevez pas souvent de courriers de eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
>
> None of the higher order definitions are used anymore, so remove
> definitions for minutes, hours, and days timeouts. Convert the seconds
> denominated timeouts to secs_to_jiffies()
There is very similar things with tcp_timeouts[] in
nf_conntrack_proto_tcp.c, why not convert it as well ?
>
> Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
> ---
> net/netfilter/nf_conntrack_proto_sctp.c | 21 ++++++++-------------
> 1 file changed, 8 insertions(+), 13 deletions(-)
>
> diff --git a/net/netfilter/nf_conntrack_proto_sctp.c b/net/netfilter/nf_conntrack_proto_sctp.c
> index 4cc97f971264ed779434ab4597dd0162586b3736..6c95ac96fa42a39acafb5b88a7cf8898010e911c 100644
> --- a/net/netfilter/nf_conntrack_proto_sctp.c
> +++ b/net/netfilter/nf_conntrack_proto_sctp.c
> @@ -39,20 +39,15 @@ static const char *const sctp_conntrack_names[] = {
> [SCTP_CONNTRACK_HEARTBEAT_SENT] = "HEARTBEAT_SENT",
> };
>
> -#define SECS * HZ
> -#define MINS * 60 SECS
> -#define HOURS * 60 MINS
> -#define DAYS * 24 HOURS
> -
> static const unsigned int sctp_timeouts[SCTP_CONNTRACK_MAX] = {
> - [SCTP_CONNTRACK_CLOSED] = 10 SECS,
> - [SCTP_CONNTRACK_COOKIE_WAIT] = 3 SECS,
> - [SCTP_CONNTRACK_COOKIE_ECHOED] = 3 SECS,
> - [SCTP_CONNTRACK_ESTABLISHED] = 210 SECS,
> - [SCTP_CONNTRACK_SHUTDOWN_SENT] = 3 SECS,
> - [SCTP_CONNTRACK_SHUTDOWN_RECD] = 3 SECS,
> - [SCTP_CONNTRACK_SHUTDOWN_ACK_SENT] = 3 SECS,
> - [SCTP_CONNTRACK_HEARTBEAT_SENT] = 30 SECS,
> + [SCTP_CONNTRACK_CLOSED] = secs_to_jiffies(10),
> + [SCTP_CONNTRACK_COOKIE_WAIT] = secs_to_jiffies(3),
> + [SCTP_CONNTRACK_COOKIE_ECHOED] = secs_to_jiffies(3),
> + [SCTP_CONNTRACK_ESTABLISHED] = secs_to_jiffies(210),
> + [SCTP_CONNTRACK_SHUTDOWN_SENT] = secs_to_jiffies(3),
> + [SCTP_CONNTRACK_SHUTDOWN_RECD] = secs_to_jiffies(3),
> + [SCTP_CONNTRACK_SHUTDOWN_ACK_SENT] = secs_to_jiffies(3),
> + [SCTP_CONNTRACK_HEARTBEAT_SENT] = secs_to_jiffies(3),
Was 30 before, if you think it must be changed to 3 you must explain it
in the commit message, or maybe do another patch for that change.
> };
>
> #define SCTP_FLAG_HEARTBEAT_VTAG_FAILED 1
>
> --
> 2.34.1
>
Christophe
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 02/21] coccinelle: misc: Add secs_to_jiffies script
2024-11-15 21:26 ` [PATCH v2 02/21] coccinelle: misc: Add secs_to_jiffies script Easwar Hariharan
2024-11-16 6:05 ` Christophe JAILLET
@ 2024-11-16 9:52 ` Christophe Leroy
2024-11-18 18:14 ` Easwar Hariharan
2024-11-16 10:23 ` [cocci] " Markus Elfring
2 siblings, 1 reply; 59+ messages in thread
From: Christophe Leroy @ 2024-11-16 9:52 UTC (permalink / raw)
To: Easwar Hariharan, 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,
Thomas Hellströ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, Roger Pau Monné,
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, Naveen N Rao,
Madhavan Srinivasan
Cc: netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
> [Vous ne recevez pas souvent de courriers de eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
>
There should be some explaination in the commit message, what the script
does for instance.
> Suggested-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
> Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
> ---
> scripts/coccinelle/misc/secs_to_jiffies.cocci | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/scripts/coccinelle/misc/secs_to_jiffies.cocci b/scripts/coccinelle/misc/secs_to_jiffies.cocci
> new file mode 100644
> index 0000000000000000000000000000000000000000..af762b1c0aac8f044f21150bfaafd9efc834ee87
> --- /dev/null
> +++ b/scripts/coccinelle/misc/secs_to_jiffies.cocci
> @@ -0,0 +1,21 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +///
> +/// Find usages of:
> +/// - msecs_to_jiffies(value*1000)
> +/// - msecs_to_jiffies(value*MSEC_PER_SEC)
> +///
> +// Confidence: High
> +// Copyright: (C) 2024 Easwar Hariharan Microsoft
> +//
> +// Keywords: secs, seconds, jiffies
> +//
> +
> +@@ constant C; @@
> +
> +- msecs_to_jiffies(C * 1000)
> ++ secs_to_jiffies(C)
> +
> +@@ constant C; @@
> +
> +- msecs_to_jiffies(C * MSEC_PER_SEC)
> ++ secs_to_jiffies(C)
>
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 05/21] powerpc/papr_scm: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 ` [PATCH v2 05/21] powerpc/papr_scm: Convert timeouts to secs_to_jiffies() Easwar Hariharan
@ 2024-11-16 10:06 ` Christophe Leroy
2024-11-16 10:40 ` Dan Carpenter
0 siblings, 1 reply; 59+ messages in thread
From: Christophe Leroy @ 2024-11-16 10:06 UTC (permalink / raw)
To: Easwar Hariharan, 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,
Thomas Hellströ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, Roger Pau Monné,
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, Naveen N Rao,
Madhavan Srinivasan
Cc: netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
> [Vous ne recevez pas souvent de courriers de eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
>
> 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)
Is it a special script or is it done with the script in patch 2.
That's nice to say how it is done, but you also have to say _what_ and
_why_ you do it. This is even more important as you plan to get it
merged independently in each tree instead of merging it as a single series.
It could be something like:
Commit b35108a51cf7 ("jiffies: Define secs_to_jiffies()") introduced
secs_to_jiffies(). As the value here is a multiple of 1000, use
secs_to_jiffies() instead of msecs_to_jiffies to avoid the multiplication.
This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci
>
> Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
> ---
> arch/powerpc/platforms/pseries/papr_scm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/platforms/pseries/papr_scm.c b/arch/powerpc/platforms/pseries/papr_scm.c
> index 9e297f88adc5d97d4dc7b267b0bfebd58e5cf193..9e8086ec66e0f0e555ac27933854c06cfcf91a04 100644
> --- a/arch/powerpc/platforms/pseries/papr_scm.c
> +++ b/arch/powerpc/platforms/pseries/papr_scm.c
> @@ -543,7 +543,7 @@ static int drc_pmem_query_health(struct papr_scm_priv *p)
>
> /* Jiffies offset for which the health data is assumed to be same */
> cache_timeout = p->lasthealth_jiffies +
> - msecs_to_jiffies(MIN_HEALTH_QUERY_INTERVAL * 1000);
> + secs_to_jiffies(MIN_HEALTH_QUERY_INTERVAL);
Wouldn't it now fit on a single line ?
cache_timeout = p->lasthealth_jiffies +
secs_to_jiffies(MIN_HEALTH_QUERY_INTERVAL);
Also I'm not sure it is worth the MIN_HEALTH_QUERY_INTERVAL macro as it
is defined localy and used only once, but that's another story.
>
> /* Fetch new health info is its older than MIN_HEALTH_QUERY_INTERVAL */
> if (time_after(jiffies, cache_timeout))
>
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 19/21] livepatch: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 ` [PATCH v2 19/21] livepatch: " Easwar Hariharan
@ 2024-11-16 10:10 ` Christophe Leroy
2024-11-18 11:06 ` Petr Mladek
0 siblings, 1 reply; 59+ messages in thread
From: Christophe Leroy @ 2024-11-16 10:10 UTC (permalink / raw)
To: Easwar Hariharan, 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,
Thomas Hellströ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, Roger Pau Monné,
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, Naveen N Rao,
Madhavan Srinivasan
Cc: netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
> [Vous ne recevez pas souvent de courriers de eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
>
> 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 <eahariha@linux.microsoft.com>
> ---
> samples/livepatch/livepatch-callbacks-busymod.c | 2 +-
> samples/livepatch/livepatch-shadow-fix1.c | 2 +-
> samples/livepatch/livepatch-shadow-mod.c | 10 +++++-----
> 3 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/samples/livepatch/livepatch-callbacks-busymod.c b/samples/livepatch/livepatch-callbacks-busymod.c
> index 378e2d40271a9717d09eff51d3d3612c679736fc..d0fd801a7c21b7d7939c29d83f9d993badcc9aba 100644
> --- a/samples/livepatch/livepatch-callbacks-busymod.c
> +++ b/samples/livepatch/livepatch-callbacks-busymod.c
> @@ -45,7 +45,7 @@ static int livepatch_callbacks_mod_init(void)
> {
> pr_info("%s\n", __func__);
> schedule_delayed_work(&work,
> - msecs_to_jiffies(1000 * 0));
> + secs_to_jiffies(0));
Using secs_to_jiffies() is pointless, 0 is universal, should become
schedule_delayed_work(&work, 0);
> return 0;
> }
>
> diff --git a/samples/livepatch/livepatch-shadow-fix1.c b/samples/livepatch/livepatch-shadow-fix1.c
> index 6701641bf12d454a770e49abeeb0dea92560e55e..948ea1f5760fed2fa27baf478c97cf98ad5c99a8 100644
> --- a/samples/livepatch/livepatch-shadow-fix1.c
> +++ b/samples/livepatch/livepatch-shadow-fix1.c
> @@ -73,7 +73,7 @@ static struct dummy *livepatch_fix1_dummy_alloc(void)
> return NULL;
>
> d->jiffies_expire = jiffies +
> - msecs_to_jiffies(1000 * EXPIRE_PERIOD);
> + secs_to_jiffies(EXPIRE_PERIOD);
>
> /*
> * Patch: save the extra memory location into a SV_LEAK shadow
> diff --git a/samples/livepatch/livepatch-shadow-mod.c b/samples/livepatch/livepatch-shadow-mod.c
> index 7e753b0d2fa611524c9e2adbe02c8fa3e9b6015e..79296e6ccb119f521e86a121623855d841c9fc5e 100644
> --- a/samples/livepatch/livepatch-shadow-mod.c
> +++ b/samples/livepatch/livepatch-shadow-mod.c
> @@ -102,7 +102,7 @@ static __used noinline struct dummy *dummy_alloc(void)
> return NULL;
>
> d->jiffies_expire = jiffies +
> - msecs_to_jiffies(1000 * EXPIRE_PERIOD);
> + secs_to_jiffies(EXPIRE_PERIOD);
Should fit on a single line, avoid multiple lines when possible.
>
> /* Oops, forgot to save leak! */
> leak = kzalloc(sizeof(*leak), GFP_KERNEL);
> @@ -153,7 +153,7 @@ static void alloc_work_func(struct work_struct *work)
> mutex_unlock(&dummy_list_mutex);
>
> schedule_delayed_work(&alloc_dwork,
> - msecs_to_jiffies(1000 * ALLOC_PERIOD));
> + secs_to_jiffies(ALLOC_PERIOD));
Should fit on a single line, avoid multiple lines when possible.
> }
>
> /*
> @@ -185,15 +185,15 @@ static void cleanup_work_func(struct work_struct *work)
> mutex_unlock(&dummy_list_mutex);
>
> schedule_delayed_work(&cleanup_dwork,
> - msecs_to_jiffies(1000 * CLEANUP_PERIOD));
> + secs_to_jiffies(CLEANUP_PERIOD));
Should fit on a single line, avoid multiple lines when possible.
> }
>
> static int livepatch_shadow_mod_init(void)
> {
> schedule_delayed_work(&alloc_dwork,
> - msecs_to_jiffies(1000 * ALLOC_PERIOD));
> + secs_to_jiffies(ALLOC_PERIOD));
Should fit on a single line, avoid multiple lines when possible.
> schedule_delayed_work(&cleanup_dwork,
> - msecs_to_jiffies(1000 * CLEANUP_PERIOD));
> + secs_to_jiffies(CLEANUP_PERIOD));
Should fit on a single line, avoid multiple lines when possible.
>
> return 0;
> }
>
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 21/21] nfp: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 ` [PATCH v2 21/21] nfp: " Easwar Hariharan
@ 2024-11-16 10:13 ` Christophe Leroy
0 siblings, 0 replies; 59+ messages in thread
From: Christophe Leroy @ 2024-11-16 10:13 UTC (permalink / raw)
To: Easwar Hariharan, 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,
Thomas Hellströ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, Roger Pau Monné,
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, Naveen N Rao,
Madhavan Srinivasan
Cc: netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
> [Vous ne recevez pas souvent de courriers de eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
As you plan to get those merged independant in each tree, I guess it
should be sent to netdev list targetting net-next tree in the subject
line as per netdev rules.
>
> 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 <eahariha@linux.microsoft.com>
> ---
> drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c
> index 6e0929af0f725b2b3855c69bbe894e6626c566b3..6925ad985fc9e2d5641feea41ff277107a8dee9c 100644
> --- a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c
> +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c
> @@ -2779,7 +2779,7 @@ static void nfp_net_netdev_init(struct nfp_net *nn)
> break;
> }
>
> - netdev->watchdog_timeo = msecs_to_jiffies(5 * 1000);
> + netdev->watchdog_timeo = secs_to_jiffies(5);
>
> /* MTU range: 68 - hw-specific max */
> netdev->min_mtu = ETH_MIN_MTU;
>
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (21 preceding siblings ...)
2024-11-15 21:29 ` [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
@ 2024-11-16 10:16 ` Christophe Leroy
2024-11-16 10:23 ` LEROY Christophe
2024-11-29 12:57 ` Przemek Kitszel
24 siblings, 0 replies; 59+ messages in thread
From: Christophe Leroy @ 2024-11-16 10:16 UTC (permalink / raw)
To: Easwar Hariharan, 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,
Thomas Hellströ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, Roger Pau Monné,
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, Naveen N Rao,
Madhavan Srinivasan
Cc: netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
> [Vous ne recevez pas souvent de courriers de eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
>
> This is a series that follows up on my previous series to introduce
> secs_to_jiffies() and convert a few initial users.[1] In the review for
> that series, Anna-Maria requested converting other users with
> Coccinelle. This is part 1 that converts users of msecs_to_jiffies()
> that use the multiply pattern of either of:
> - msecs_to_jiffies(N*1000), or
> - msecs_to_jiffies(N*MSEC_PER_SEC)
You should provide a reference to the accepted commit that adds
secs_to_jiffies:
Commit b35108a51cf7 ("jiffies: Define secs_to_jiffies()")
>
> The entire conversion is made with Coccinelle in the script added in
> patch 2. Some changes suggested by Coccinelle have been deferred to
> later parts that will address other possible variant patterns.
>
> CC: Anna-Maria Behnsen <anna-maria@linutronix.de>
> Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
>
> [1] https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fall%2F20241030-open-coded-timeouts-v3-0-9ba123facf88%40linux.microsoft.com%2F&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7C121622b159564a010cac08dd05bc32da%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638673028056187739%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=oW04hGIpfjRo8qcX0GaGdHE1xiApgoOtgAuWQXFgWR4%3D&reserved=0
> [2] https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fall%2F8734kngfni.fsf%40somnus%2F&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7C121622b159564a010cac08dd05bc32da%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638673028056211741%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=UDn89U6oUNFiRj3K5fvNEIuiwmwEGfJ2XhPn43z8%2BhA%3D&reserved=0
>
> ---
> Changes in v2:
> - EDITME: describe what is new in this series revision.
> - EDITME: use bulletpoints and terse descriptions.
> - Link to v1: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fr%2F20241115-converge-secs-to-jiffies-v1-0-19aadc34941b%40linux.microsoft.com&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7C121622b159564a010cac08dd05bc32da%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638673028056225723%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=reWzZOiSyn%2FA5qxcXAoUqNGedJ1K%2FM%2BuCgEKwXusuU8%3D&reserved=0
>
> ---
> Easwar Hariharan (21):
> netfilter: conntrack: Cleanup timeout definitions
> coccinelle: misc: Add secs_to_jiffies script
> arm: pxa: Convert timeouts to use secs_to_jiffies()
> s390: kernel: Convert timeouts to use secs_to_jiffies()
> powerpc/papr_scm: Convert timeouts to secs_to_jiffies()
> mm: kmemleak: Convert timeouts to secs_to_jiffies()
> accel/habanalabs: Convert timeouts to secs_to_jiffies()
> drm/xe: Convert timeout to secs_to_jiffies()
> drm/etnaviv: Convert timeouts to secs_to_jiffies()
> scsi: lpfc: Convert timeouts to secs_to_jiffies()
> scsi: arcmsr: Convert timeouts to secs_to_jiffies()
> scsi: pm8001: Convert timeouts to secs_to_jiffies()
> xen/blkback: Convert timeouts to secs_to_jiffies()
> gve: Convert timeouts to secs_to_jiffies()
> wifi: ath11k: Convert timeouts to secs_to_jiffies()
> Bluetooth: MGMT: Convert timeouts to secs_to_jiffies()
> staging: vc04_services: Convert timeouts to secs_to_jiffies()
> ceph: Convert timeouts to secs_to_jiffies()
> livepatch: Convert timeouts to secs_to_jiffies()
> ALSA: line6: Convert timeouts to secs_to_jiffies()
> nfp: Convert timeouts to secs_to_jiffies()
>
> arch/arm/mach-pxa/sharpsl_pm.c | 6 +++---
> arch/powerpc/platforms/pseries/papr_scm.c | 2 +-
> arch/s390/kernel/lgr.c | 3 ++-
> arch/s390/kernel/time.c | 4 ++--
> arch/s390/kernel/topology.c | 2 +-
> drivers/accel/habanalabs/common/device.c | 2 +-
> drivers/accel/habanalabs/common/habanalabs_drv.c | 3 +--
> drivers/block/xen-blkback/blkback.c | 2 +-
> drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c | 2 +-
> drivers/gpu/drm/xe/xe_device.c | 2 +-
> drivers/net/ethernet/google/gve/gve_tx_dqo.c | 6 ++----
> drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 2 +-
> drivers/net/wireless/ath/ath11k/debugfs.c | 2 +-
> drivers/scsi/arcmsr/arcmsr_hba.c | 2 +-
> drivers/scsi/lpfc/lpfc_init.c | 18 +++++++++---------
> drivers/scsi/lpfc/lpfc_nportdisc.c | 8 ++++----
> drivers/scsi/lpfc/lpfc_nvme.c | 2 +-
> drivers/scsi/lpfc/lpfc_sli.c | 4 ++--
> drivers/scsi/lpfc/lpfc_vmid.c | 2 +-
> drivers/scsi/pm8001/pm8001_init.c | 2 +-
> .../vc04_services/bcm2835-audio/bcm2835-vchiq.c | 2 +-
> fs/ceph/quota.c | 2 +-
> mm/kmemleak.c | 4 ++--
> net/bluetooth/mgmt.c | 2 +-
> net/netfilter/nf_conntrack_proto_sctp.c | 21 ++++++++-------------
> samples/livepatch/livepatch-callbacks-busymod.c | 2 +-
> samples/livepatch/livepatch-shadow-fix1.c | 2 +-
> samples/livepatch/livepatch-shadow-mod.c | 10 +++++-----
> scripts/coccinelle/misc/secs_to_jiffies.cocci | 21 +++++++++++++++++++++
> sound/usb/line6/toneport.c | 2 +-
> 30 files changed, 79 insertions(+), 65 deletions(-)
> ---
> base-commit: 2d5404caa8c7bb5c4e0435f94b28834ae5456623
> change-id: 20241112-converge-secs-to-jiffies-d99d1016bd11
>
> Best regards,
> --
> Easwar Hariharan <eahariha@linux.microsoft.com>
>
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [cocci] [PATCH v2 02/21] coccinelle: misc: Add secs_to_jiffies script
2024-11-15 21:26 ` [PATCH v2 02/21] coccinelle: misc: Add secs_to_jiffies script Easwar Hariharan
2024-11-16 6:05 ` Christophe JAILLET
2024-11-16 9:52 ` Christophe Leroy
@ 2024-11-16 10:23 ` Markus Elfring
2 siblings, 0 replies; 59+ messages in thread
From: Markus Elfring @ 2024-11-16 10:23 UTC (permalink / raw)
To: Easwar Hariharan, cocci
Cc: LKML, kernel-janitors, netfilter-devel, coreteam, netdev,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen, 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,
Thomas Hellströ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, Roger Pau Monné,
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
Why is a change description missing here?
…
> +++ b/scripts/coccinelle/misc/secs_to_jiffies.cocci
> @@ -0,0 +1,21 @@
…
> +/// Find usages of:
> +/// - msecs_to_jiffies(value*1000)
> +/// - msecs_to_jiffies(value*MSEC_PER_SEC)
I suggest to take another look at corresponding development documentation.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/dev-tools/coccinelle.rst?h=v6.12-rc7#n71
Will the attention grow for the proper usage of operation modes
according to the tool “coccicheck”?
…
> +// Copyright: (C) 2024 Easwar Hariharan Microsoft
Should personal details and company names be better distinguished in such information?
> +//
> +// Keywords: secs, seconds, jiffies
May a (blank) comment line be omitted here?
> +@@ constant C; @@
> +
> +- msecs_to_jiffies(C * 1000)
> ++ secs_to_jiffies(C)
> +
> +@@ constant C; @@
> +
> +- msecs_to_jiffies(C * MSEC_PER_SEC)
> ++ secs_to_jiffies(C)
I suggest to take a SmPL code variant (like the following)
better into account.
@depends on patch@
constant C;
@@
-msecs_to_jiffies
+secs_to_jiffies
(C
- * \( 1000 \| MSEC_PER_SEC \)
)
Can any expressions become relevant besides “constants”?
Regards,
Markus
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (22 preceding siblings ...)
2024-11-16 10:16 ` Christophe Leroy
@ 2024-11-16 10:23 ` LEROY Christophe
2024-11-18 18:07 ` Easwar Hariharan
2024-11-29 12:57 ` Przemek Kitszel
24 siblings, 1 reply; 59+ messages in thread
From: LEROY Christophe @ 2024-11-16 10:23 UTC (permalink / raw)
To: Easwar Hariharan, 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,
Thomas Hellströ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, Roger Pau Monné,
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, Naveen N Rao,
Madhavan Srinivasan
Cc: netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
> [Vous ne recevez pas souvent de courriers de eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
>
> This is a series that follows up on my previous series to introduce
> secs_to_jiffies() and convert a few initial users.[1] In the review for
> that series, Anna-Maria requested converting other users with
> Coccinelle. This is part 1 that converts users of msecs_to_jiffies()
> that use the multiply pattern of either of:
> - msecs_to_jiffies(N*1000), or
> - msecs_to_jiffies(N*MSEC_PER_SEC)
After applying this series on top of tip/timers/core tree, I still find
a lot of candidates to the conversion:
Documentation/driver-api/media/dtv-frontend.rst:
state->per_jiffies_stats = jiffies + msecs_to_jiffies(1000);
arch/arm/kernel/smp.c: msecs_to_jiffies(1000));
arch/arm/mach-imx/src.c: timeout = jiffies + msecs_to_jiffies(1000);
arch/mips/kernel/smp.c: msecs_to_jiffies(1000))) {
arch/openrisc/kernel/smp.c: msecs_to_jiffies(1000))) {
arch/riscv/kernel/smpboot.c: msecs_to_jiffies(1000));
arch/xtensa/kernel/smp.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
arch/xtensa/kernel/smp.c: msecs_to_jiffies(1000));
arch/xtensa/kernel/smp.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
block/bfq-iosched.c: msecs_to_jiffies(10000))) {
block/bfq-iosched.c: msecs_to_jiffies(1000)))
drivers/accel/habanalabs/common/command_submission.c: ?
msecs_to_jiffies(args->in.timeout * 1000)
drivers/accel/habanalabs/common/debugfs.c: hdev->timeout_jiffies =
msecs_to_jiffies(value * 1000);
drivers/accel/habanalabs/common/device.c:
msecs_to_jiffies(hdev->device_release_watchdog_timeout_sec * 1000));
drivers/ata/libata-zpodd.c: msecs_to_jiffies(zpodd_poweroff_delay *
1000);
drivers/auxdisplay/arm-charlcd.c:#define CHARLCD_TIMEOUT
(msecs_to_jiffies(1000))
drivers/block/mtip32xx/mtip32xx.c: timeout = jiffies +
msecs_to_jiffies(10000);
drivers/block/mtip32xx/mtip32xx.c: msecs_to_jiffies(1000);
drivers/block/rbd.c:#define RBD_RETRY_DELAY msecs_to_jiffies(1000)
drivers/block/rbd.c: opt->lock_timeout =
msecs_to_jiffies(result.uint_32 * 1000);
drivers/bluetooth/btnxpuart.c: msecs_to_jiffies(1000));
drivers/bluetooth/hci_bcm4377.c:#define BCM4377_TIMEOUT
msecs_to_jiffies(1000)
drivers/bluetooth/hci_intel.c: msecs_to_jiffies(1000));
drivers/bluetooth/hci_intel.c: msecs_to_jiffies(1000));
drivers/bluetooth/hci_nokia.c: msecs_to_jiffies(1000))) {
drivers/bluetooth/hci_nokia.c: msecs_to_jiffies(10000))) {
drivers/bluetooth/hci_vhci.c: hdev->dump.timeout =
msecs_to_jiffies(timeout * 1000);
drivers/bluetooth/hci_vhci.c: schedule_delayed_work(&data->open_timeout,
msecs_to_jiffies(1000));
drivers/char/agp/intel-gtt.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
drivers/comedi/drivers/jr3_pci.c: devpriv->timer.expires = jiffies +
msecs_to_jiffies(1000);
drivers/crypto/intel/qat/qat_common/adf_aer.c: unsigned long
wait_jiffies = msecs_to_jiffies(10000);
drivers/crypto/intel/qat/qat_common/adf_aer.c: unsigned long
wait_jiffies = msecs_to_jiffies(10000);
drivers/crypto/mxs-dcp.c: msecs_to_jiffies(1000));
drivers/crypto/starfive/jh7110-aes.c: msecs_to_jiffies(1000)))
drivers/crypto/starfive/jh7110-hash.c: msecs_to_jiffies(1000)))
drivers/crypto/stm32/stm32-cryp.c: if
(!wait_for_completion_timeout(&cryp->dma_completion,
msecs_to_jiffies(1000))) {
drivers/dma/plx_dma.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
drivers/dma/ti/k3-udma.c: unsigned long timeout = msecs_to_jiffies(1000);
drivers/dma/xilinx/xdma.c:
wait_for_completion_timeout(&xdma_chan->last_interrupt,
msecs_to_jiffies(1000));
drivers/fpga/xilinx-core.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c:
msecs_to_jiffies(1000));
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c: adev->gfx_timeout =
msecs_to_jiffies(10000);
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c: msecs_to_jiffies(60000)
: msecs_to_jiffies(10000);
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c:#define AMDGPU_IB_TEST_TIMEOUT
msecs_to_jiffies(1000)
drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c:#define JPEG_IDLE_TIMEOUT
msecs_to_jiffies(1000)
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:#define UVD_IDLE_TIMEOUT
msecs_to_jiffies(1000)
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c:#define VCE_IDLE_TIMEOUT
msecs_to_jiffies(1000)
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h:#define VCN_IDLE_TIMEOUT
msecs_to_jiffies(1000)
drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c:#define VPE_IDLE_TIMEOUT
msecs_to_jiffies(1000)
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c: long tmo = msecs_to_jiffies(1000);
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c: long tmo = msecs_to_jiffies(1000);
drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c: long tmo = msecs_to_jiffies(1000);
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c:
msecs_to_jiffies(1000));
drivers/gpu/drm/bridge/ite-it6505.c: msecs_to_jiffies(1000));
drivers/gpu/drm/etnaviv/etnaviv_gpu.c: timeout = jiffies +
msecs_to_jiffies(1000);
drivers/gpu/drm/etnaviv/etnaviv_gpu.c: unsigned long timeout =
msecs_to_jiffies(10 * 10000);
drivers/gpu/drm/gma500/cdv_intel_crt.c: timeout = jiffies +
msecs_to_jiffies(1000);
drivers/gpu/drm/i915/display/intel_drrs.c:
mod_delayed_work(i915->unordered_wq, &crtc->drrs.work,
msecs_to_jiffies(1000));
drivers/gpu/drm/i915/display/intel_lspcon.c: if (time_after(jiffies,
start + msecs_to_jiffies(1000)))
drivers/gpu/drm/i915/display/intel_tc.c: msecs_to_jiffies(1000));
drivers/gpu/drm/msm/adreno/a5xx_preempt.c:
mod_timer(&a5xx_gpu->preempt_timer, jiffies + msecs_to_jiffies(10000));
drivers/gpu/drm/msm/adreno/a6xx_gpu.c: if
(!wait_for_completion_timeout(&gmu->pd_gate, msecs_to_jiffies(1000)))
drivers/gpu/drm/msm/adreno/adreno_device.c:
msecs_to_jiffies(1000));
drivers/gpu/drm/msm/adreno/adreno_gpu.h:#define ADRENO_IDLE_TIMEOUT
msecs_to_jiffies(1000)
drivers/gpu/drm/nouveau/nvkm/engine/sec2/base.c:
msecs_to_jiffies(1000));
drivers/gpu/drm/nouveau/nvkm/engine/sec2/ga102.c:
msecs_to_jiffies(1000));
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c:
msecs_to_jiffies(1000));
drivers/gpu/drm/nouveau/nvkm/falcon/cmdq.c: msecs_to_jiffies(1000))) {
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c: &pmu->subdev,
msecs_to_jiffies(1000));
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gp10b.c: &pmu->subdev,
msecs_to_jiffies(1000));
drivers/gpu/drm/panfrost/panfrost_perfcnt.c: msecs_to_jiffies(1000));
drivers/gpu/drm/panfrost/panfrost_perfcnt.c: msecs_to_jiffies(1000));
drivers/gpu/drm/panthor/panthor_fw.c: msecs_to_jiffies(1000))) {
drivers/gpu/drm/radeon/radeon_connectors.c:
msecs_to_jiffies(1000));
drivers/gpu/drm/radeon/radeon_connectors.c:
schedule_delayed_work(&rdev->hotplug_work, msecs_to_jiffies(1000));
drivers/gpu/drm/tegra/hub.c: timeout = jiffies + msecs_to_jiffies(1000);
drivers/gpu/drm/tegra/hub.c: timeout = jiffies + msecs_to_jiffies(1000);
drivers/gpu/drm/tegra/submit.c: err = dma_fence_wait_timeout(fence,
true, msecs_to_jiffies(10000));
drivers/gpu/drm/vc4/vc4_bo.c: unsigned long expire_time = jiffies -
msecs_to_jiffies(1000);
drivers/gpu/drm/vc4/vc4_bo.c: msecs_to_jiffies(1000)));
drivers/gpu/drm/vc4/vc4_dsi.c: msecs_to_jiffies(1000))) {
drivers/gpu/drm/vc4/vc4_txp.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
drivers/gpu/drm/xe/xe_execlist.c: port->irq_fail.expires = jiffies +
msecs_to_jiffies(1000);
drivers/gpu/drm/xe/xe_execlist.c: port->irq_fail.expires = jiffies +
msecs_to_jiffies(1000);
drivers/gpu/ipu-v3/ipu-common.c: timeout = jiffies + msecs_to_jiffies(1000);
drivers/gpu/ipu-v3/ipu-image-convert.c: msecs_to_jiffies(10000));
drivers/gpu/ipu-v3/ipu-image-convert.c: ret =
wait_for_completion_timeout(&comp, msecs_to_jiffies(10000));
drivers/hid/hid-rmi.c: msecs_to_jiffies(1000))) {
drivers/hid/i2c-hid/i2c-hid-core.c: msecs_to_jiffies(1000))) {
drivers/hid/usbhid/hid-core.c: usbhid->stop_retry = jiffies +
msecs_to_jiffies(1000);
drivers/hid/wacom_sys.c: schedule_delayed_work(&wacom->init_work,
msecs_to_jiffies(1000));
drivers/hwmon/occ/common.c:#define OCC_UPDATE_FREQUENCY
msecs_to_jiffies(1000)
drivers/i2c/busses/i2c-cadence.c:#define CDNS_I2C_TIMEOUT
msecs_to_jiffies(1000)
drivers/i2c/busses/i2c-cadence.c: msg_timeout = msecs_to_jiffies((1000 *
msg->len * BITS_PER_BYTE) / id->i2c_clk);
drivers/i2c/busses/i2c-eg20t.c: (adap->pch_event_flag != 0),
msecs_to_jiffies(1000));
drivers/i2c/busses/i2c-img-scb.c:#define IMG_I2C_TIMEOUT
(msecs_to_jiffies(1000))
drivers/i2c/busses/i2c-lpc2k.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
drivers/i2c/busses/i2c-lpc2k.c: msecs_to_jiffies(1000)) == 0) {
drivers/i2c/busses/i2c-mxs.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
drivers/i2c/busses/i2c-mxs.c: msecs_to_jiffies(1000));
drivers/i2c/busses/i2c-omap.c:#define OMAP_I2C_TIMEOUT
(msecs_to_jiffies(1000))
drivers/i2c/busses/i2c-viai2c-common.h:#define VIAI2C_TIMEOUT
(msecs_to_jiffies(1000))
drivers/i2c/busses/i2c-xiic.c:#define XIIC_I2C_TIMEOUT
(msecs_to_jiffies(1000))
drivers/i2c/busses/i2c-xiic.c:#define XIIC_XFER_TIMEOUT
(msecs_to_jiffies(10000))
drivers/i3c/master/dw-i3c-master.c:#define XFER_TIMEOUT
(msecs_to_jiffies(1000))
drivers/i3c/master/i3c-master-cdns.c: if
(!wait_for_completion_timeout(&xfer->comp, msecs_to_jiffies(1000)))
drivers/i3c/master/i3c-master-cdns.c: msecs_to_jiffies(1000)))
drivers/i3c/master/i3c-master-cdns.c: if
(!wait_for_completion_timeout(&xfer->comp, msecs_to_jiffies(1000)))
drivers/i3c/master/svc-i3c-master.c: if (time_after(jiffies, start +
msecs_to_jiffies(1000))) {
drivers/i3c/master/svc-i3c-master.c: if
(!wait_for_completion_timeout(&xfer->comp, msecs_to_jiffies(1000)))
drivers/i3c/master/svc-i3c-master.c: if
(!wait_for_completion_timeout(&xfer->comp, msecs_to_jiffies(1000)))
drivers/i3c/master/svc-i3c-master.c: if
(!wait_for_completion_timeout(&xfer->comp, msecs_to_jiffies(1000)))
drivers/i3c/master/svc-i3c-master.c: if
(!wait_for_completion_timeout(&xfer->comp, msecs_to_jiffies(1000)))
drivers/iio/accel/bmc150-accel-i2c.c:
schedule_delayed_work(&data->resume_work, msecs_to_jiffies(1000));
drivers/iio/adc/ad4130.c: msecs_to_jiffies(1000));
drivers/iio/adc/ad7606.c: msecs_to_jiffies(1000));
drivers/iio/adc/ad7768-1.c: msecs_to_jiffies(1000));
drivers/iio/adc/at91-sama5d2_adc.c: msecs_to_jiffies(1000));
drivers/iio/adc/at91_adc.c: msecs_to_jiffies(1000));
drivers/iio/adc/berlin2-adc.c: msecs_to_jiffies(1000));
drivers/iio/adc/berlin2-adc.c: msecs_to_jiffies(1000));
drivers/iio/adc/intel_mrfld_adc.c:#define BCOVE_ADC_TIMEOUT
msecs_to_jiffies(1000)
drivers/iio/adc/max1027.c: msecs_to_jiffies(1000));
drivers/iio/adc/nau7802.c: msecs_to_jiffies(1000));
drivers/iio/adc/stmpe-adc.c:#define STMPE_ADC_TIMEOUT
msecs_to_jiffies(1000)
drivers/iio/adc/sun4i-gpadc-iio.c: msecs_to_jiffies(1000))) {
drivers/iio/addac/ad74115.c: msecs_to_jiffies(1000));
drivers/iio/addac/ad74413r.c: msecs_to_jiffies(1000));
drivers/iio/chemical/scd30_core.c: timeout =
msecs_to_jiffies(state->meas_interval * (1000 + SCD30_EXTRA_TIMEOUT_PER_S));
drivers/iio/light/gp2ap020a00f.c:#define GP2AP020A00F_DATA_READY_TIMEOUT
msecs_to_jiffies(1000)
drivers/iio/magnetometer/ak8974.c: 1 + msecs_to_jiffies(1000));
drivers/infiniband/core/mad_rmpp.c: &rmpp_recv->cleanup_work,
msecs_to_jiffies(10000));
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:
msecs_to_jiffies(rcfw->max_timeout * 1000));
drivers/infiniband/hw/mlx4/alias_GUID.c:
msecs_to_jiffies(resched_delay_sec * 1000));
drivers/infiniband/hw/mlx5/mr.c: msecs_to_jiffies(1000));
drivers/infiniband/hw/mlx5/mr.c: msecs_to_jiffies(1000));
drivers/infiniband/hw/mlx5/mr.c: msecs_to_jiffies(30 * 1000));
drivers/infiniband/hw/ocrdma/ocrdma_hw.c:
schedule_delayed_work(&dev->eqd_work, msecs_to_jiffies(1000));
drivers/infiniband/hw/ocrdma/ocrdma_main.c:
schedule_delayed_work(&dev->eqd_work, msecs_to_jiffies(1000));
drivers/infiniband/ulp/srp/ib_srp.c: rq_tmo_jiffies =
msecs_to_jiffies(max_compl_time_ms + 1000);
drivers/input/rmi4/rmi_f54.c: msecs_to_jiffies(1000))) {
drivers/input/serio/ps2-gpio.c: msecs_to_jiffies(10000)))
drivers/input/serio/sun4i-ps2.c: unsigned long expire = jiffies +
msecs_to_jiffies(10000);
drivers/input/touchscreen/stmfts.c: msecs_to_jiffies(1000)))
drivers/input/touchscreen/zforce_ts.c:#define WAIT_TIMEOUT
msecs_to_jiffies(1000)
drivers/iommu/iommufd/main.c: msecs_to_jiffies(10000)))
drivers/mailbox/pl320-ipc.c: msecs_to_jiffies(1000));
drivers/media/cec/usb/extron-da-hd-4k-plus/extron-da-hd-4k-plus.c:
msecs_to_jiffies(1000));
drivers/media/cec/usb/extron-da-hd-4k-plus/extron-da-hd-4k-plus.c:
msecs_to_jiffies(1000));
drivers/media/cec/usb/extron-da-hd-4k-plus/extron-da-hd-4k-plus.c:
msecs_to_jiffies(1000));
drivers/media/dvb-frontends/cx24120.c: state->per_jiffies_stats =
jiffies + msecs_to_jiffies(1000);
drivers/media/dvb-frontends/cxd2841er.c: priv->stats_time = jiffies +
msecs_to_jiffies(1000);
drivers/media/dvb-frontends/dib7000p.c: state->per_jiffies_stats =
jiffies + msecs_to_jiffies(1000);
drivers/media/dvb-frontends/dib8000.c: state->per_jiffies_stats =
jiffies + msecs_to_jiffies(1000);
drivers/media/dvb-frontends/lgdt330x.c: state->last_stats_time = jiffies
+ msecs_to_jiffies(1000);
drivers/media/dvb-frontends/lgdt330x.c: state->last_stats_time = jiffies
+ msecs_to_jiffies(1000);
drivers/media/dvb-frontends/mb86a20s.c: msecs_to_jiffies(1000);
drivers/media/dvb-frontends/sp2.c: s->next_status_checked_time =
jiffies + msecs_to_jiffies(1000);
drivers/media/i2c/ds90ub960.c: timeout = jiffies + msecs_to_jiffies(1000);
drivers/media/pci/bt8xx/bttv-input.c: ir->timer.expires = jiffies +
msecs_to_jiffies(1000);
drivers/media/pci/bt8xx/bttvp.h:#define BTTV_FREE_IDLE
msecs_to_jiffies(1000) /* one second */
drivers/media/pci/cx18/cx18-fileops.c: if (time_after(jiffies,
cx->dualwatch_jiffies + msecs_to_jiffies(1000))) {
drivers/media/pci/cx23885/cimax2.c: + msecs_to_jiffies(1000);
drivers/media/pci/cx88/cx88-blackbird.c: timeout = jiffies +
msecs_to_jiffies(1000);
drivers/media/pci/ivtv/ivtv-fileops.c: msecs_to_jiffies(1000))) {
drivers/media/pci/ivtv/ivtv-mailbox.c: int api_timeout =
msecs_to_jiffies(1000);
drivers/media/pci/mgb4/mgb4_dma.c: msecs_to_jiffies(10000))) {
drivers/media/pci/netup_unidvb/netup_unidvb_core.c:
mod_timer(&dma->timeout, jiffies + msecs_to_jiffies(1000));
drivers/media/pci/saa7134/saa7134.h:#define TS_BUFFER_TIMEOUT
msecs_to_jiffies(1000) /* 1 second */
drivers/media/pci/tw5864/tw5864-core.c: input->new_frame_deadline =
jiffies + msecs_to_jiffies(1000);
drivers/media/platform/amphion/vpu.h:#define VPU_TIMEOUT
msecs_to_jiffies(1000)
drivers/media/platform/aspeed/aspeed-video.c:#define STOP_TIMEOUT
msecs_to_jiffies(1000)
drivers/media/platform/chips-media/coda/coda-bit.c: unsigned long
timeout = jiffies + msecs_to_jiffies(1000);
drivers/media/platform/chips-media/coda/coda-common.c:
msecs_to_jiffies(1000))) {
drivers/media/platform/nvidia/tegra-vde/h264.c:
&vde->decode_completion, msecs_to_jiffies(1000));
drivers/media/platform/qcom/venus/hfi.c:#define TIMEOUT
msecs_to_jiffies(1000)
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c:
msecs_to_jiffies(1000));
drivers/media/platform/ti/omap3isp/isp.c:#define ISP_STOP_TIMEOUT
msecs_to_jiffies(1000)
drivers/media/platform/ti/omap3isp/isp.c: msecs_to_jiffies(1000))) {
drivers/media/radio/radio-wl1273.c: t =
wait_for_completion_timeout(&radio->busy, msecs_to_jiffies(1000));
drivers/media/radio/radio-wl1273.c:
wait_for_completion_timeout(&radio->busy, msecs_to_jiffies(1000));
drivers/media/radio/radio-wl1273.c: if
(!wait_for_completion_timeout(&radio->busy, msecs_to_jiffies(1000)))
drivers/media/radio/tea575x.c: timeout = jiffies + msecs_to_jiffies(10000);
drivers/media/tuners/si2157.c: schedule_delayed_work(&dev->stat_work,
msecs_to_jiffies(1000));
drivers/media/usb/dvb-usb-v2/af9015.c: for (val = 0x00, timeout =
jiffies + msecs_to_jiffies(1000);
drivers/media/usb/dvb-usb-v2/anysee.c: state->ci_cam_ready = jiffies +
msecs_to_jiffies(1000);
drivers/media/usb/hdpvr/hdpvr-video.c: msecs_to_jiffies(1000));
drivers/memstick/host/jmb38x_ms.c: host->timeout_jiffies =
msecs_to_jiffies(1000);
drivers/memstick/host/r592.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
drivers/memstick/host/r592.c: &dev->dma_done, msecs_to_jiffies(1000))) {
drivers/memstick/host/tifm_ms.c: host->timeout_jiffies =
msecs_to_jiffies(1000);
drivers/misc/cxl/guest.c: schedule_delayed_work(&afu->guest->work_err,
msecs_to_jiffies(1000));
drivers/misc/pci_endpoint_test.c: msecs_to_jiffies(1000));
drivers/misc/pci_endpoint_test.c: msecs_to_jiffies(1000));
drivers/mmc/host/meson-mx-sdio.c: timeout = msecs_to_jiffies(1000);
drivers/mmc/host/moxart-mmc.c: host->timeout = msecs_to_jiffies(1000);
drivers/mmc/host/sh_mmcif.c: host->timeout = msecs_to_jiffies(10000);
drivers/mmc/host/sunxi-mmc.c: unsigned long expire = jiffies +
msecs_to_jiffies(1000);
drivers/mtd/hyperbus/hbmc-am654.c: if
(!wait_for_completion_timeout(&priv->rx_dma_complete,
msecs_to_jiffies(len + 1000))) {
drivers/mtd/nand/ecc-mxic.c: msecs_to_jiffies(1000));
drivers/mtd/nand/raw/cadence-nand-controller.c: unsigned long timeout =
msecs_to_jiffies(10000);
drivers/mtd/nand/raw/denali.c: msecs_to_jiffies(1000));
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c: to =
wait_for_completion_timeout(dma_completion, msecs_to_jiffies(1000));
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c: to =
wait_for_completion_timeout(bch_completion, msecs_to_jiffies(1000));
drivers/mtd/nand/raw/intel-nand-controller.c: time_left =
wait_for_completion_timeout(dma_completion, msecs_to_jiffies(1000));
drivers/mtd/nand/raw/lpc32xx_mlc.c:
wait_for_completion_timeout(&host->comp_dma, msecs_to_jiffies(1000));
drivers/mtd/nand/raw/lpc32xx_slc.c:
wait_for_completion_timeout(&host->comp, msecs_to_jiffies(1000));
drivers/mtd/nand/raw/r852.c: msecs_to_jiffies(1000));
drivers/mtd/nand/raw/r852.c: &dev->card_detect_work,
msecs_to_jiffies(1000));
drivers/net/amt.c: mod_delayed_work(amt_wq, &amt->req_wq,
msecs_to_jiffies(exp * 1000));
drivers/net/arcnet/arcnet.c: mod_timer(&lp->timer, jiffies +
msecs_to_jiffies(1000));
drivers/net/arcnet/arcnet.c: mod_timer(&lp->timer, jiffies +
msecs_to_jiffies(1000));
drivers/net/can/kvaser_pciefd.c:#define KVASER_PCIEFD_WAIT_TIMEOUT
msecs_to_jiffies(1000)
drivers/net/can/sja1000/peak_pcmcia.c:
msecs_to_jiffies(PCC_SPI_MAX_BUSY_WAIT_MS) + 1;
drivers/net/ethernet/broadcom/bnxt/bnxt.h:#define
BNXT_SRIOV_CFG_WAIT_TMO msecs_to_jiffies(10000)
drivers/net/ethernet/cavium/liquidio/lio_main.c:#define
WAIT_INFLIGHT_REQUEST msecs_to_jiffies(1000)
drivers/net/ethernet/cavium/liquidio/lio_main.c:
wait_for_completion_timeout(&first_stage, msecs_to_jiffies(1000));
drivers/net/ethernet/emulex/benet/be_main.c: queue_delayed_work(be_wq,
&adapter->work, msecs_to_jiffies(1000));
drivers/net/ethernet/emulex/benet/be_main.c: queue_delayed_work(be_wq,
&adapter->work, msecs_to_jiffies(1000));
drivers/net/ethernet/ibm/ehea/ehea_main.c:
round_jiffies_relative(msecs_to_jiffies(1000)));
drivers/net/ethernet/ibm/ehea/ehea_main.c:
round_jiffies_relative(msecs_to_jiffies(1000)));
drivers/net/ethernet/intel/ice/ice_eswitch_br.c:#define
ICE_ESW_BRIDGE_UPDATE_INTERVAL msecs_to_jiffies(1000)
drivers/net/ethernet/intel/idpf/idpf_lib.c: msecs_to_jiffies(10000));
drivers/net/ethernet/marvell/prestera/prestera_counter.c:#define
COUNTER_POLL_TIME (msecs_to_jiffies(1000))
drivers/net/ethernet/mediatek/mtk_eth_soc.h:#define
MTK_DMA_MONITOR_TIMEOUT msecs_to_jiffies(1000)
drivers/net/ethernet/mellanox/mlx5/core/cmd.c: poll_end = jiffies +
msecs_to_jiffies(cmd_to_ms + 1000);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c:#define
MLX5_IPSEC_RESCHED msecs_to_jiffies(1000)
drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c:#define
MLX5_FC_STATS_PERIOD msecs_to_jiffies(1000)
drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c:#define
MLX5_FC_BULK_QUERY_ALLOC_PERIOD msecs_to_jiffies(180 * 1000)
drivers/net/ethernet/netronome/nfp/flower/qos_conf.c:#define
NFP_FL_QOS_UPDATE msecs_to_jiffies(1000)
drivers/net/ethernet/ti/am65-cpsw-nuss.c: msecs_to_jiffies(1000));
drivers/net/ethernet/ti/am65-cpsw-nuss.c: i =
wait_for_completion_timeout(&common->tdown_complete,
msecs_to_jiffies(1000));
drivers/net/ethernet/ti/icssg/icssg_prueth.c: msecs_to_jiffies(1000));
drivers/net/ethernet/ti/icssg/icssg_prueth_sr1.c:
msecs_to_jiffies(1000));
drivers/net/ethernet/ti/icssg/icssg_stats.c:
msecs_to_jiffies((STATS_TIME_LIMIT_1G_MS * 1000) / emac->speed));
drivers/net/ethernet/vertexcom/mse102x.c: unsigned long work_timeout =
jiffies + msecs_to_jiffies(1000);
drivers/net/ieee802154/ca8210.c: msecs_to_jiffies(1000)
drivers/net/phy/sfp.c:#define T_FAULT_RECOVER msecs_to_jiffies(1000)
drivers/net/phy/sfp.c: sfp->phy_t_retry = msecs_to_jiffies(1000);
drivers/net/pse-pd/pd692x0.c: timeout = msecs_to_jiffies(10000) + jiffies;
drivers/net/thunderbolt/main.c: msecs_to_jiffies(1000));
drivers/net/wireless/ath/wil6210/wil6210.h:#define WIL6210_SCAN_TO
msecs_to_jiffies(10000)
drivers/net/wireless/intel/iwlegacy/4965-mac.c: jiffies +
msecs_to_jiffies(recalib_seconds * 1000));
drivers/net/wireless/intel/iwlwifi/dvm/rx.c:
msecs_to_jiffies(reg_recalib_period * 1000));
drivers/net/wireless/intel/iwlwifi/fw/debugfs.c: fwrt->timestamp.delay =
msecs_to_jiffies(delay * 1000);
drivers/net/wireless/intersil/p54/p54usb.c: timeout = jiffies +
msecs_to_jiffies(1000);
drivers/net/wireless/intersil/p54/p54usb.c: timeout = jiffies +
msecs_to_jiffies(1000);
drivers/net/wireless/mediatek/mt7601u/mcu.c: if
(!wait_for_completion_timeout(&cmpl, msecs_to_jiffies(1000))) {
drivers/net/wireless/microchip/wilc1000/hif.c:
mod_timer(&vif->periodic_rssi, jiffies + msecs_to_jiffies(5000));
drivers/net/wireless/microchip/wilc1000/hif.c:
mod_timer(&vif->periodic_rssi, jiffies + msecs_to_jiffies(5000));
drivers/net/wireless/microchip/wilc1000/netdev.c:
msecs_to_jiffies(5000)))
drivers/net/wireless/microchip/wilc1000/wlan.h:#define
WILC_CFG_PKTS_TIMEOUT msecs_to_jiffies(3000)
drivers/net/wireless/silabs/wfx/data_tx.c:
msecs_to_jiffies(1000)) <= 0)
drivers/nfc/s3fwrn5/firmware.c: &fw_info->completion,
msecs_to_jiffies(1000));
drivers/nfc/st95hf/spi.c: msecs_to_jiffies(1000));
drivers/ntb/hw/amd/ntb_hw_amd.h:#define AMD_LINK_HB_TIMEOUT
msecs_to_jiffies(1000)
drivers/nvme/host/core.c: msecs_to_jiffies(admin_timeout * 1000);
drivers/pci/endpoint/functions/pci-epf-mhi.c: ret =
wait_for_completion_timeout(&complete, msecs_to_jiffies(1000));
drivers/pci/endpoint/functions/pci-epf-mhi.c: ret =
wait_for_completion_timeout(&complete, msecs_to_jiffies(1000));
drivers/pci/hotplug/shpchp_hpc.c: unsigned long timeout =
msecs_to_jiffies(1000);
drivers/phy/freescale/phy-fsl-lynx-28g.c: msecs_to_jiffies(1000));
drivers/phy/freescale/phy-fsl-lynx-28g.c: msecs_to_jiffies(1000));
drivers/phy/motorola/phy-cpcap-usb.c: msecs_to_jiffies(1000));
drivers/phy/rockchip/phy-rockchip-pcie.c: timeout = jiffies +
msecs_to_jiffies(1000);
drivers/platform/chrome/cros_typec_switch.c: end = jiffies +
msecs_to_jiffies(1000);
drivers/platform/surface/surface_dtx.c: sdtx_update_device_state(ddev,
msecs_to_jiffies(1000));
drivers/platform/x86/amd/pmf/acpi.c:
schedule_delayed_work(&dev->heart_beat,
msecs_to_jiffies(dev->hb_interval * 1000));
drivers/platform/x86/dell/dell-uart-backlight.c:#define DELL_BL_TIMEOUT
msecs_to_jiffies(1000)
drivers/platform/x86/thinkpad_acpi.c:
msecs_to_jiffies(fan_watchdog_maxinterval * 1000));
drivers/power/supply/qcom_pmi8998_charger.c:
msecs_to_jiffies(1000));
drivers/rtc/rtc-isl1208.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
drivers/scsi/cxlflash/main.c: ulong timeout =
msecs_to_jiffies(cmd->rcb.timeout * 2 * 1000);
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c: end_time = jiffies +
msecs_to_jiffies(1000);
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c: end_time = jiffies +
msecs_to_jiffies(1000);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c: end_time = jiffies +
msecs_to_jiffies(1000);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c: end_time = jiffies +
msecs_to_jiffies(1000);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c: hisi_hba->timer.expires =
jiffies + msecs_to_jiffies(1000);
drivers/scsi/lpfc/lpfc.h:#define QUEUE_RAMP_DOWN_INTERVAL
(msecs_to_jiffies(1000 * 1))
drivers/scsi/lpfc/lpfc_bsg.c: msecs_to_jiffies(1000 *
drivers/scsi/lpfc/lpfc_bsg.c: msecs_to_jiffies(1000 *
drivers/scsi/lpfc/lpfc_els.c: msecs_to_jiffies(1000 * tmo));
drivers/scsi/lpfc/lpfc_els.c: jiffies + msecs_to_jiffies(1000 * tmo));
drivers/scsi/lpfc/lpfc_els.c: jiffies + msecs_to_jiffies(1000 *
timeout));
drivers/scsi/lpfc/lpfc_els.c: jiffies + msecs_to_jiffies(1000 *
phba->fc_ratov));
drivers/scsi/lpfc/lpfc_els.c: mod_timer(&ndlp->nlp_delayfunc, jiffies +
msecs_to_jiffies(1000));
drivers/scsi/lpfc/lpfc_hbadisc.c: mod_timer(&vport->fc_disctmo, jiffies
+ msecs_to_jiffies(1000 * tmo));
drivers/scsi/lpfc/lpfc_init.c: jiffies + msecs_to_jiffies(1000 *
timeout));
drivers/scsi/lpfc/lpfc_init.c: jiffies + msecs_to_jiffies(1000 *
phba->eratt_poll_interval));
drivers/scsi/lpfc/lpfc_init.c: jiffies + msecs_to_jiffies(1000));
drivers/scsi/lpfc/lpfc_nportdisc.c: mod_timer(&ndlp->nlp_delayfunc,
jiffies + msecs_to_jiffies(1000));
drivers/scsi/lpfc/lpfc_nportdisc.c: jiffies + msecs_to_jiffies(1000));
drivers/scsi/lpfc/lpfc_nportdisc.c: jiffies + msecs_to_jiffies(1000));
drivers/scsi/lpfc/lpfc_scsi.c:
msecs_to_jiffies(2*vport->cfg_devloss_tmo*1000));
drivers/scsi/lpfc/lpfc_scsi.c: later = msecs_to_jiffies(2 *
vport->cfg_devloss_tmo * 1000) + jiffies;
drivers/scsi/lpfc/lpfc_scsi.c: later = msecs_to_jiffies(2 *
vport->cfg_devloss_tmo * 1000) + jiffies;
drivers/scsi/lpfc/lpfc_sli.c: next_time = jiffies +
msecs_to_jiffies(1000 * (phba->fc_ratov + 1));
drivers/scsi/lpfc/lpfc_sli.c: msecs_to_jiffies(1000 * (phba->fc_ratov
+ 1));
drivers/scsi/lpfc/lpfc_sli.c: msecs_to_jiffies(1000 *
(phba->fc_ratov << 1)));
drivers/scsi/lpfc/lpfc_sli.c: msecs_to_jiffies(1000 *
phba->eratt_poll_interval));
drivers/scsi/lpfc/lpfc_sli.c: jiffies + msecs_to_jiffies(1000 *
(phba->fc_ratov * 2)));
drivers/scsi/lpfc/lpfc_sli.c: jiffies + msecs_to_jiffies(1000 *
phba->eratt_poll_interval));
drivers/scsi/lpfc/lpfc_sli.c: msecs_to_jiffies(1000 *
lpfc_mbox_tmo_val(phba, mboxq))));
drivers/scsi/lpfc/lpfc_sli.c: timeout_req = msecs_to_jiffies(timeout *
1000);
drivers/scsi/lpfc/lpfc_sli.c: msecs_to_jiffies(timeout * 1000));
drivers/scsi/lpfc/lpfc_vport.c: wait_time_max =
msecs_to_jiffies(((phba->fc_ratov * 3) + 3) * 1000);
drivers/scsi/mpt3sas/mpt3sas_base.c: msecs_to_jiffies(10000));
drivers/scsi/mpt3sas/mpt3sas_base.c: msecs_to_jiffies(10000));
drivers/soc/apple/rtkit.c: msecs_to_jiffies(1000));
drivers/soc/qcom/rpmh.c:#define RPMH_TIMEOUT_MS msecs_to_jiffies(10000)
drivers/spi/atmel-quadspi.c: msecs_to_jiffies(1000)))
drivers/spi/spi-at91-usart.c:#define US_DMA_TIMEOUT
(msecs_to_jiffies(1000))
drivers/spi/spi-fsl-qspi.c: if (!wait_for_completion_timeout(&q->c,
msecs_to_jiffies(1000)))
drivers/spi/spi-img-spfi.c: msecs_to_jiffies(xfer->len * 8 * 1000 /
xfer->speed_hz + 100);
drivers/spi/spi-microchip-core-qspi.c: if
(!wait_for_completion_timeout(&qspi->data_completion,
msecs_to_jiffies(1000)))
drivers/spi/spi-nxp-fspi.c: if (!wait_for_completion_timeout(&f->c,
msecs_to_jiffies(1000)))
drivers/spi/spi-omap2-mcspi.c: timeout = jiffies + msecs_to_jiffies(1000);
drivers/spi/spi-sunplus-sp7021.c: unsigned long timeout =
msecs_to_jiffies(1000);
drivers/spi/spi-tegra114.c:#define SPI_DMA_TIMEOUT
(msecs_to_jiffies(1000))
drivers/spi/spi-tegra20-sflash.c:#define SPI_DMA_TIMEOUT
(msecs_to_jiffies(1000))
drivers/spi/spi-tegra20-slink.c:#define SLINK_DMA_TIMEOUT
(msecs_to_jiffies(1000))
drivers/spi/spi-tegra210-quad.c:#define QSPI_DMA_TIMEOUT
(msecs_to_jiffies(1000))
drivers/spi/spi-xlp.c: msecs_to_jiffies(1000));
drivers/spi/spi-zynq-qspi.c: msecs_to_jiffies(1000)))
drivers/spi/spi-zynq-qspi.c: msecs_to_jiffies(1000)))
drivers/spi/spi-zynq-qspi.c: msecs_to_jiffies(1000)))
drivers/spi/spi-zynq-qspi.c: msecs_to_jiffies(1000)))
drivers/spi/spi-zynqmp-gqspi.c: timeout = jiffies + msecs_to_jiffies(1000);
drivers/staging/greybus/fw-download.c:#define NEXT_REQ_TIMEOUT_J
msecs_to_jiffies(1000)
drivers/staging/media/ipu3/ipu3.c: imgu_css_queue_empty(&imgu->css),
msecs_to_jiffies(1000)))
drivers/staging/media/omap4iss/iss.c: msecs_to_jiffies(1000))) {
drivers/tty/serial/xilinx_uartps.c: timeout = jiffies +
msecs_to_jiffies(1000);
drivers/tty/serial/xilinx_uartps.c: timeout = jiffies +
msecs_to_jiffies(1000);
drivers/usb/atm/speedtch.c: mod_timer(&instance->status_check_timer,
jiffies + msecs_to_jiffies(1000));
drivers/usb/atm/ueagle-atm.c: ret = uea_wait(sc, 0, msecs_to_jiffies(1000));
drivers/usb/atm/ueagle-atm.c: uea_wait(sc, 0, msecs_to_jiffies(1000));
drivers/usb/gadget/function/f_uvc.c: uvc->func_connected == false,
msecs_to_jiffies(1000));
drivers/usb/gadget/udc/at91_udc.c:#define VBUS_POLL_TIMEOUT
msecs_to_jiffies(1000)
drivers/usb/musb/musb_core.c: msecs_to_jiffies(1000));
drivers/usb/musb/ux500.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
drivers/usb/storage/realtek_cr.c: chip->timer_expires = jiffies +
msecs_to_jiffies(1000*ss_delay);
drivers/usb/typec/tipd/core.c: timeout = jiffies + msecs_to_jiffies(1000);
drivers/usb/typec/ucsi/ucsi_ccg.c: unsigned long target = jiffies +
msecs_to_jiffies(1000);
drivers/video/fbdev/omap2/omapfb/dss/dsi.c: msecs_to_jiffies(1000))
== 0) {
drivers/w1/masters/ds2490.c: const unsigned long jtime =
msecs_to_jiffies(1000*8/75);
fs/btrfs/disk-io.c: delay = msecs_to_jiffies(fs_info->commit_interval *
1000);
fs/btrfs/disk-io.c: delay -= msecs_to_jiffies((delta - 1) * 1000);
fs/btrfs/disk-io.c: msecs_to_jiffies(fs_info->commit_interval *
1000));
fs/ocfs2/cluster/heartbeat.c: msecs_to_jiffies(1000));
fs/ocfs2/dlm/dlmmaster.c: msecs_to_jiffies(1000));
fs/ocfs2/dlm/dlmrecovery.c: msecs_to_jiffies(1000));
fs/ocfs2/dlm/dlmrecovery.c: msecs_to_jiffies(1000));
fs/pstore/zone.c: schedule_delayed_work(&psz_cleaner,
msecs_to_jiffies(1000));
fs/xfs/xfs_icache.c: msecs_to_jiffies(xfs_blockgc_secs * 1000));
include/drm/gpu_scheduler.h:#define MAX_WAIT_SCHED_ENTITY_Q_EMPTY
msecs_to_jiffies(1000)
include/linux/ceph/libceph.h:#define CEPH_MOUNT_TIMEOUT_DEFAULT
msecs_to_jiffies(60 * 1000)
include/linux/ceph/libceph.h:#define CEPH_OSD_KEEPALIVE_DEFAULT
msecs_to_jiffies(5 * 1000)
include/linux/ceph/libceph.h:#define CEPH_OSD_IDLE_TTL_DEFAULT
msecs_to_jiffies(60 * 1000)
include/linux/ceph/libceph.h:#define CEPH_MONC_HUNT_INTERVAL
msecs_to_jiffies(3 * 1000)
include/linux/ceph/libceph.h:#define CEPH_MONC_PING_INTERVAL
msecs_to_jiffies(10 * 1000)
include/linux/ceph/libceph.h:#define CEPH_MONC_PING_TIMEOUT
msecs_to_jiffies(30 * 1000)
include/net/bluetooth/coredump.h:#define DEVCOREDUMP_TIMEOUT
msecs_to_jiffies(10000) /* 10 sec */
include/net/bluetooth/hci.h:#define HCI_INIT_TIMEOUT
msecs_to_jiffies(10000) /* 10 seconds */
include/net/bluetooth/l2cap.h:#define L2CAP_WAIT_ACK_TIMEOUT
msecs_to_jiffies(10000)
kernel/kcsan/kcsan_test.c: end_time += msecs_to_jiffies(1000); /* This
test requires a bit more time. */
kernel/power/energy_model.c: msecs_to_jiffies(1000));
net/batman-adv/distributed-arp-table.c: msecs_to_jiffies(10000));
net/bluetooth/hci_sync.c: msecs_to_jiffies(timeout * 1000));
net/bluetooth/mgmt.c: int to = msecs_to_jiffies(hdev->discov_timeout *
1000);
net/bluetooth/mgmt.c: int to = msecs_to_jiffies(hdev->discov_timeout *
1000);
net/bridge/br_private.h:#define BR_MULTICAST_QUERY_INTVL_MIN
msecs_to_jiffies(1000)
net/ceph/ceph_common.c: msecs_to_jiffies(result.uint_32 * 1000);
net/ceph/ceph_common.c: opt->osd_idle_ttl =
msecs_to_jiffies(result.uint_32 * 1000);
net/ceph/ceph_common.c: opt->mount_timeout =
msecs_to_jiffies(result.uint_32 * 1000);
net/ceph/ceph_common.c: msecs_to_jiffies(result.uint_32 * 1000);
net/core/page_pool.c:#define DEFER_TIME (msecs_to_jiffies(1000))
net/ipv4/ipconfig.c: msecs_to_jiffies(carrier_timeout * 1000))) {
net/mac802154/scan.c: msecs_to_jiffies(1000));
net/mac802154/scan.c: msecs_to_jiffies(1000));
net/netfilter/xt_IDLETIMER.c: msecs_to_jiffies(info->timeout * 1000)
+ jiffies);
net/netfilter/xt_IDLETIMER.c: msecs_to_jiffies(info->timeout * 1000)
+ jiffies);
net/netfilter/xt_IDLETIMER.c: msecs_to_jiffies(info->timeout * 1000)
+ jiffies);
net/netfilter/xt_IDLETIMER.c: msecs_to_jiffies(info->timeout * 1000)
+ jiffies);
net/netfilter/xt_IDLETIMER.c: msecs_to_jiffies(info->timeout * 1000)
+ jiffies);
net/netfilter/xt_IDLETIMER.c: msecs_to_jiffies(info->timeout * 1000)
+ jiffies);
net/nfc/nci/spi.c: msecs_to_jiffies(1000)) == 0) {
net/tipc/crypto.c:#define TIPC_TX_LASTING_TIME msecs_to_jiffies(10000)
/* 10s */
net/tipc/discover.c:#define TIPC_DISC_FAST msecs_to_jiffies(1000)
net/tipc/discover.c: tn->addr_trial_end = jiffies + msecs_to_jiffies(1000);
net/tipc/discover.c: tn->addr_trial_end = jiffies + msecs_to_jiffies(1000);
samples/connector/cn_test.c: mod_timer(&cn_test_timer, jiffies +
msecs_to_jiffies(1000));
samples/connector/cn_test.c: mod_timer(&cn_test_timer, jiffies +
msecs_to_jiffies(1000));
scripts/coccinelle/misc/secs_to_jiffies.cocci:/// -
msecs_to_jiffies(value*1000)
scripts/coccinelle/misc/secs_to_jiffies.cocci:- msecs_to_jiffies(C * 1000)
sound/hda/hdac_controller.c: timeout = jiffies + msecs_to_jiffies(1000);
sound/isa/wss/wss_lib.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
sound/pci/ac97/ac97_codec.c: msecs_to_jiffies(power_save * 1000));
sound/pci/hda/hda_intel.c: msecs_to_jiffies(1000));
sound/pci/hda/patch_ca0132.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
sound/pci/hda/patch_ca0132.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
sound/pci/hda/patch_ca0132.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
sound/pci/hda/patch_ca0132.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
sound/pci/hda/patch_ca0132.c: unsigned long timeout = jiffies +
msecs_to_jiffies(1000);
sound/pci/lola/lola.c: timeout = jiffies + msecs_to_jiffies(1000);
sound/soc/codecs/cs42l43-jack.c: msecs_to_jiffies(1000));
sound/soc/codecs/cs43130.c: msecs_to_jiffies(1000));
sound/soc/codecs/rt5677.c: msecs_to_jiffies(1000));
sound/soc/codecs/wm8971.c: &wm8971->charge_work, msecs_to_jiffies(1000));
sound/soc/codecs/wm8994.c: msecs_to_jiffies(1000));
sound/usb/endpoint.c: unsigned long end_time = jiffies +
msecs_to_jiffies(1000);
sound/usb/mixer_scarlett2.c: msecs_to_jiffies(1000))) {
>
> The entire conversion is made with Coccinelle in the script added in
> patch 2. Some changes suggested by Coccinelle have been deferred to
> later parts that will address other possible variant patterns.
>
> CC: Anna-Maria Behnsen <anna-maria@linutronix.de>
> Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
>
> [1] https://lore.kernel.org/all/20241030-open-coded-timeouts-v3-0-9ba123facf88@linux.microsoft.com/
> [2] https://lore.kernel.org/all/8734kngfni.fsf@somnus/
>
> ---
> Changes in v2:
> - EDITME: describe what is new in this series revision.
> - EDITME: use bulletpoints and terse descriptions.
> - Link to v1: https://lore.kernel.org/r/20241115-converge-secs-to-jiffies-v1-0-19aadc34941b@linux.microsoft.com
>
> ---
> Easwar Hariharan (21):
> netfilter: conntrack: Cleanup timeout definitions
> coccinelle: misc: Add secs_to_jiffies script
> arm: pxa: Convert timeouts to use secs_to_jiffies()
> s390: kernel: Convert timeouts to use secs_to_jiffies()
> powerpc/papr_scm: Convert timeouts to secs_to_jiffies()
> mm: kmemleak: Convert timeouts to secs_to_jiffies()
> accel/habanalabs: Convert timeouts to secs_to_jiffies()
> drm/xe: Convert timeout to secs_to_jiffies()
> drm/etnaviv: Convert timeouts to secs_to_jiffies()
> scsi: lpfc: Convert timeouts to secs_to_jiffies()
> scsi: arcmsr: Convert timeouts to secs_to_jiffies()
> scsi: pm8001: Convert timeouts to secs_to_jiffies()
> xen/blkback: Convert timeouts to secs_to_jiffies()
> gve: Convert timeouts to secs_to_jiffies()
> wifi: ath11k: Convert timeouts to secs_to_jiffies()
> Bluetooth: MGMT: Convert timeouts to secs_to_jiffies()
> staging: vc04_services: Convert timeouts to secs_to_jiffies()
> ceph: Convert timeouts to secs_to_jiffies()
> livepatch: Convert timeouts to secs_to_jiffies()
> ALSA: line6: Convert timeouts to secs_to_jiffies()
> nfp: Convert timeouts to secs_to_jiffies()
>
> arch/arm/mach-pxa/sharpsl_pm.c | 6 +++---
> arch/powerpc/platforms/pseries/papr_scm.c | 2 +-
> arch/s390/kernel/lgr.c | 3 ++-
> arch/s390/kernel/time.c | 4 ++--
> arch/s390/kernel/topology.c | 2 +-
> drivers/accel/habanalabs/common/device.c | 2 +-
> drivers/accel/habanalabs/common/habanalabs_drv.c | 3 +--
> drivers/block/xen-blkback/blkback.c | 2 +-
> drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c | 2 +-
> drivers/gpu/drm/xe/xe_device.c | 2 +-
> drivers/net/ethernet/google/gve/gve_tx_dqo.c | 6 ++----
> drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 2 +-
> drivers/net/wireless/ath/ath11k/debugfs.c | 2 +-
> drivers/scsi/arcmsr/arcmsr_hba.c | 2 +-
> drivers/scsi/lpfc/lpfc_init.c | 18 +++++++++---------
> drivers/scsi/lpfc/lpfc_nportdisc.c | 8 ++++----
> drivers/scsi/lpfc/lpfc_nvme.c | 2 +-
> drivers/scsi/lpfc/lpfc_sli.c | 4 ++--
> drivers/scsi/lpfc/lpfc_vmid.c | 2 +-
> drivers/scsi/pm8001/pm8001_init.c | 2 +-
> .../vc04_services/bcm2835-audio/bcm2835-vchiq.c | 2 +-
> fs/ceph/quota.c | 2 +-
> mm/kmemleak.c | 4 ++--
> net/bluetooth/mgmt.c | 2 +-
> net/netfilter/nf_conntrack_proto_sctp.c | 21 ++++++++-------------
> samples/livepatch/livepatch-callbacks-busymod.c | 2 +-
> samples/livepatch/livepatch-shadow-fix1.c | 2 +-
> samples/livepatch/livepatch-shadow-mod.c | 10 +++++-----
> scripts/coccinelle/misc/secs_to_jiffies.cocci | 21 +++++++++++++++++++++
> sound/usb/line6/toneport.c | 2 +-
> 30 files changed, 79 insertions(+), 65 deletions(-)
> ---
> base-commit: 2d5404caa8c7bb5c4e0435f94b28834ae5456623
> change-id: 20241112-converge-secs-to-jiffies-d99d1016bd11
>
> Best regards,
> --
> Easwar Hariharan <eahariha@linux.microsoft.com>
>
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 03/21] arm: pxa: Convert timeouts to use secs_to_jiffies()
2024-11-15 21:26 ` [PATCH v2 03/21] arm: pxa: Convert timeouts to use secs_to_jiffies() Easwar Hariharan
@ 2024-11-16 10:26 ` Christophe Leroy
0 siblings, 0 replies; 59+ messages in thread
From: Christophe Leroy @ 2024-11-16 10:26 UTC (permalink / raw)
To: Easwar Hariharan, 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,
Thomas Hellströ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, Roger Pau Monné,
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, Naveen N Rao,
Madhavan Srinivasan
Cc: netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
> [Vous ne recevez pas souvent de courriers de eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
>
> 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 <eahariha@linux.microsoft.com>
> ---
> arch/arm/mach-pxa/sharpsl_pm.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/mach-pxa/sharpsl_pm.c b/arch/arm/mach-pxa/sharpsl_pm.c
> index 72fa2e3fd35318e5a63c121ed7990a56a56b134c..bbbd06bc79bbb94fb258562e5a382acaf3c277b3 100644
> --- a/arch/arm/mach-pxa/sharpsl_pm.c
> +++ b/arch/arm/mach-pxa/sharpsl_pm.c
> @@ -31,9 +31,9 @@
> /*
> * Constants
> */
> -#define SHARPSL_CHARGE_ON_TIME_INTERVAL (msecs_to_jiffies(1*60*1000)) /* 1 min */
> -#define SHARPSL_CHARGE_FINISH_TIME (msecs_to_jiffies(10*60*1000)) /* 10 min */
> -#define SHARPSL_BATCHK_TIME (msecs_to_jiffies(15*1000)) /* 15 sec */
> +#define SHARPSL_CHARGE_ON_TIME_INTERVAL (secs_to_jiffies(60)) /* 1 min */
> +#define SHARPSL_CHARGE_FINISH_TIME (secs_to_jiffies(10*60)) /* 10 min */
> +#define SHARPSL_BATCHK_TIME (secs_to_jiffies(15)) /* 15 sec */
This comment is completely useless now.
The other ones are probably also kind of useless, everybody knows 1 min
= 60 sec. See https://docs.kernel.org/process/coding-style.html#commenting
> #define SHARPSL_BATCHK_TIME_SUSPEND (60*10) /* 10 min */
>
> #define SHARPSL_WAIT_CO_TIME 15 /* 15 sec */
>
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 05/21] powerpc/papr_scm: Convert timeouts to secs_to_jiffies()
2024-11-16 10:06 ` Christophe Leroy
@ 2024-11-16 10:40 ` Dan Carpenter
2024-11-16 11:24 ` Julia Lawall
0 siblings, 1 reply; 59+ messages in thread
From: Dan Carpenter @ 2024-11-16 10:40 UTC (permalink / raw)
To: Christophe Leroy
Cc: Easwar Hariharan, 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,
Thomas Hellströ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, Roger Pau Monné,
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, Naveen N Rao,
Madhavan Srinivasan, netfilter-devel, coreteam, netdev,
linux-kernel, cocci, linux-arm-kernel, linux-s390, dri-devel,
intel-xe, linux-scsi, xen-devel, linux-block, linux-wireless,
ath11k, linux-mm, linux-bluetooth, linux-staging,
linux-rpi-kernel, ceph-devel, live-patching, linux-sound,
etnaviv, oss-drivers, linuxppc-dev, Anna-Maria Behnsen
On Sat, Nov 16, 2024 at 11:06:55AM +0100, Christophe Leroy wrote:
> > diff --git a/arch/powerpc/platforms/pseries/papr_scm.c b/arch/powerpc/platforms/pseries/papr_scm.c
> > index 9e297f88adc5d97d4dc7b267b0bfebd58e5cf193..9e8086ec66e0f0e555ac27933854c06cfcf91a04 100644
> > --- a/arch/powerpc/platforms/pseries/papr_scm.c
> > +++ b/arch/powerpc/platforms/pseries/papr_scm.c
> > @@ -543,7 +543,7 @@ static int drc_pmem_query_health(struct papr_scm_priv *p)
> >
> > /* Jiffies offset for which the health data is assumed to be same */
> > cache_timeout = p->lasthealth_jiffies +
> > - msecs_to_jiffies(MIN_HEALTH_QUERY_INTERVAL * 1000);
> > + secs_to_jiffies(MIN_HEALTH_QUERY_INTERVAL);
>
> Wouldn't it now fit on a single line ?
>
Some maintainers still prefer to put a line break at 80 characters. It's kind
of a nightmare for an automated script like this to figure out everyone's
preferences. In this particular file, there are some lines which go over 80
characters so sure. Earlier in the patchset one of these introduced a line
break that wasn't there before so I think maybe Coccinelle is applying the 80
character line break rule?
There are sometimes where the 80 character rule really hurts readability, but
here it doesn't make any difference.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 05/21] powerpc/papr_scm: Convert timeouts to secs_to_jiffies()
2024-11-16 10:40 ` Dan Carpenter
@ 2024-11-16 11:24 ` Julia Lawall
0 siblings, 0 replies; 59+ messages in thread
From: Julia Lawall @ 2024-11-16 11:24 UTC (permalink / raw)
To: Dan Carpenter
Cc: Christophe Leroy, Easwar Hariharan, Pablo Neira Ayuso,
Jozsef Kadlecsik, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Simon Horman, 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,
Thomas Hellströ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, Roger Pau Monné,
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, Naveen N Rao,
Madhavan Srinivasan, netfilter-devel, coreteam, netdev,
linux-kernel, cocci, linux-arm-kernel, linux-s390, dri-devel,
intel-xe, linux-scsi, xen-devel, linux-block, linux-wireless,
ath11k, linux-mm, linux-bluetooth, linux-staging,
linux-rpi-kernel, ceph-devel, live-patching, linux-sound,
etnaviv, oss-drivers, linuxppc-dev, Anna-Maria Behnsen
Sent from my iPhone
> On 16 Nov 2024, at 05:40, Dan Carpenter <dan.carpenter@linaro.org> wrote:
>
> On Sat, Nov 16, 2024 at 11:06:55AM +0100, Christophe Leroy wrote:
>>> diff --git a/arch/powerpc/platforms/pseries/papr_scm.c b/arch/powerpc/platforms/pseries/papr_scm.c
>>> index 9e297f88adc5d97d4dc7b267b0bfebd58e5cf193..9e8086ec66e0f0e555ac27933854c06cfcf91a04 100644
>>> --- a/arch/powerpc/platforms/pseries/papr_scm.c
>>> +++ b/arch/powerpc/platforms/pseries/papr_scm.c
>>> @@ -543,7 +543,7 @@ static int drc_pmem_query_health(struct papr_scm_priv *p)
>>>
>>> /* Jiffies offset for which the health data is assumed to be same */
>>> cache_timeout = p->lasthealth_jiffies +
>>> - msecs_to_jiffies(MIN_HEALTH_QUERY_INTERVAL * 1000);
>>> + secs_to_jiffies(MIN_HEALTH_QUERY_INTERVAL);
>>
>> Wouldn't it now fit on a single line ?
>>
>
> Some maintainers still prefer to put a line break at 80 characters.
Coccinelle tries for 80 chars. It may have a command line option to specify something else.
Julia
> It's kind
> of a nightmare for an automated script like this to figure out everyone's
> preferences. In this particular
> file, there are some lines which go over 80
> characters so sure. Earlier in the patchset one of these introduced a line
> break that wasn't there before so I think maybe Coccinelle is applying the 80
> character line break rule?
>
> There are sometimes where the 80 character rule really hurts readability, but
> here it doesn't make any difference.
>
> regards,
> dan carpenter
>
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 04/21] s390: kernel: Convert timeouts to use secs_to_jiffies()
2024-11-15 21:26 ` [PATCH v2 04/21] s390: kernel: " Easwar Hariharan
@ 2024-11-18 8:26 ` Heiko Carstens
0 siblings, 0 replies; 59+ messages in thread
From: Heiko Carstens @ 2024-11-18 8:26 UTC (permalink / raw)
To: Easwar Hariharan
Cc: 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, Vasily Gorbik, Alexander Gordeev,
Christian Borntraeger, Sven Schnelle, Ofir Bitton, Oded Gabbay,
Lucas De Marchi, Thomas Hellströ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,
Roger Pau Monné,
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, netfilter-devel, coreteam,
netdev, linux-kernel, cocci, linux-arm-kernel, linux-s390,
dri-devel, intel-xe, linux-scsi, xen-devel, linux-block,
linux-wireless, ath11k, linux-mm, linux-bluetooth, linux-staging,
linux-rpi-kernel, ceph-devel, live-patching, linux-sound,
etnaviv, oss-drivers, linuxppc-dev, Anna-Maria Behnsen
On Fri, Nov 15, 2024 at 09:26:21PM +0000, Easwar Hariharan wrote:
> 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 <eahariha@linux.microsoft.com>
> ---
> arch/s390/kernel/lgr.c | 3 ++-
> arch/s390/kernel/time.c | 4 ++--
> arch/s390/kernel/topology.c | 2 +-
> 3 files changed, 5 insertions(+), 4 deletions(-)
...
> diff --git a/arch/s390/kernel/lgr.c b/arch/s390/kernel/lgr.c
> index 6652e54cf3db9fbdd8cfb06f8a0dc1d4c05ae7d7..68021cb38574b122bbe3d9f70e9168305360017b 100644
> --- a/arch/s390/kernel/lgr.c
> +++ b/arch/s390/kernel/lgr.c
> @@ -166,7 +166,8 @@ static struct timer_list lgr_timer;
> */
> static void lgr_timer_set(void)
> {
> - mod_timer(&lgr_timer, jiffies + msecs_to_jiffies(LGR_TIMER_INTERVAL_SECS * MSEC_PER_SEC));
> + mod_timer(&lgr_timer,
> + jiffies + secs_to_jiffies(LGR_TIMER_INTERVAL_SECS));
> }
Please don't add a new line break, especially not if the new line
would be shorter than the old one.
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 19/21] livepatch: Convert timeouts to secs_to_jiffies()
2024-11-16 10:10 ` Christophe Leroy
@ 2024-11-18 11:06 ` Petr Mladek
2024-11-18 18:18 ` Easwar Hariharan
0 siblings, 1 reply; 59+ messages in thread
From: Petr Mladek @ 2024-11-18 11:06 UTC (permalink / raw)
To: Christophe Leroy
Cc: Easwar Hariharan, 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,
Thomas Hellströ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, Roger Pau Monné,
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, Joe Lawrence, Jaroslav Kysela, Takashi Iwai,
Lucas Stach, Russell King, Christian Gmeiner, Louis Peens,
Michael Ellerman, Nicholas Piggin, Naveen N Rao,
Madhavan Srinivasan, netfilter-devel, coreteam, netdev,
linux-kernel, cocci, linux-arm-kernel, linux-s390, dri-devel,
intel-xe, linux-scsi, xen-devel, linux-block, linux-wireless,
ath11k, linux-mm, linux-bluetooth, linux-staging,
linux-rpi-kernel, ceph-devel, live-patching, linux-sound,
etnaviv, oss-drivers, linuxppc-dev, Anna-Maria Behnsen
On Sat 2024-11-16 11:10:52, Christophe Leroy wrote:
>
>
> Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
> > [Vous ne recevez pas souvent de courriers de eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
> >
> > 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 <eahariha@linux.microsoft.com>
> > ---
> > samples/livepatch/livepatch-callbacks-busymod.c | 2 +-
> > samples/livepatch/livepatch-shadow-fix1.c | 2 +-
> > samples/livepatch/livepatch-shadow-mod.c | 10 +++++-----
> > 3 files changed, 7 insertions(+), 7 deletions(-)
> >
> > diff --git a/samples/livepatch/livepatch-callbacks-busymod.c b/samples/livepatch/livepatch-callbacks-busymod.c
> > index 378e2d40271a9717d09eff51d3d3612c679736fc..d0fd801a7c21b7d7939c29d83f9d993badcc9aba 100644
> > --- a/samples/livepatch/livepatch-callbacks-busymod.c
> > +++ b/samples/livepatch/livepatch-callbacks-busymod.c
> > @@ -45,7 +45,7 @@ static int livepatch_callbacks_mod_init(void)
> > {
> > pr_info("%s\n", __func__);
> > schedule_delayed_work(&work,
> > - msecs_to_jiffies(1000 * 0));
> > + secs_to_jiffies(0));
>
> Using secs_to_jiffies() is pointless, 0 is universal, should become
> schedule_delayed_work(&work, 0);
Yes, schedule_delayed_work(&work, 0) looks like the right solution.
Or even better, it seems that the delayed work might get replaced by
a normal workqueue work.
Anyway, I am working on a patchset which would remove this sample
module. There is no need to put much effort into the clean up
of this particular module. Do whatever is easiest for you.
Best Regards,
Petr
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()
2024-11-16 10:23 ` LEROY Christophe
@ 2024-11-18 18:07 ` Easwar Hariharan
0 siblings, 0 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-18 18:07 UTC (permalink / raw)
To: LEROY Christophe
Cc: 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, Thomas Hellströ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,
Roger Pau Monné,
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, Naveen N Rao,
Madhavan Srinivasan, eahariha, netfilter-devel, coreteam, netdev,
linux-kernel, cocci, linux-arm-kernel, linux-s390, dri-devel,
intel-xe, linux-scsi, xen-devel, linux-block, linux-wireless,
ath11k, linux-mm, linux-bluetooth, linux-staging,
linux-rpi-kernel, ceph-devel, live-patching, linux-sound,
etnaviv, oss-drivers, linuxppc-dev, Anna-Maria Behnsen
On 11/16/2024 2:23 AM, LEROY Christophe wrote:
>
>
> Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
>> [Vous ne recevez pas souvent de courriers de eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
>>
>> This is a series that follows up on my previous series to introduce
>> secs_to_jiffies() and convert a few initial users.[1] In the review for
>> that series, Anna-Maria requested converting other users with
>> Coccinelle. This is part 1 that converts users of msecs_to_jiffies()
>> that use the multiply pattern of either of:
>> - msecs_to_jiffies(N*1000), or
>> - msecs_to_jiffies(N*MSEC_PER_SEC)
>
> After applying this series on top of tip/timers/core tree, I still find
> a lot of candidates to the conversion:
>
Thanks for looking, that pattern of seconds-denominated
msecs_to_jiffies() calls will be addressed in a later part. As mentioned
in my reply to Anna-Maria[1], I'm not super-familiar with Coccinelle. I
sent this out as part 1 as mentioned in the cover letter above to make
incremental progress as much as I could. Julia has sent me a message
with a rule that could possibly address the pattern you point out.
I also see there are some instances in the grep results that appear to
be expression * 1000 rather than constant * 1000. I'll address those in
one of the later parts as well.
Thanks,
Easwar
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 02/21] coccinelle: misc: Add secs_to_jiffies script
2024-11-16 6:05 ` Christophe JAILLET
@ 2024-11-18 18:09 ` Easwar Hariharan
0 siblings, 0 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-18 18:09 UTC (permalink / raw)
To: Christophe JAILLET
Cc: eahariha, James.Bottomley, Julia.Lawall, agordeev, airlied, akpm,
andrew+netdev, anna-maria, ath11k, axboe,
bcm-kernel-feedback-list, borntraeger, catalin.marinas,
ceph-devel, christian.gmeiner, christophe.leroy, cocci, coreteam,
daniel, davem, dick.kennedy, dri-devel, edumazet, etnaviv,
florian.fainelli, gor, gregkh, haojian.zhuang, hca, horms,
idryomov, intel-xe, james.smart, jeroendb, jikos, jinpu.wang,
jjohnson, joe.lawrence, johan.hedberg, jpoimboe, kadlec, kuba,
kvalo, l.stach, linux+etnaviv, linux-arm-kernel, linux-block,
linux-bluetooth, linux-kernel, linux-mm, linux-rpi-kernel,
linux-s390, linux-scsi, linux-sound, linux-staging,
linux-wireless, linux, linuxppc-dev, live-patching, louis.peens,
lucas.demarchi, luiz.dentz, maarten.lankhorst, maddy, marcel,
martin.petersen, mbenes, mpe, mripard, naveen, netdev,
netfilter-devel, nicolas.palix, npiggin, obitton, ogabbay,
oss-drivers, pabeni, pablo, perex, pkaligineedi, pmladek, rjui,
robert.jarzmik, rodrigo.vivi, roger.pau, sbranden, shailend,
simona, svens, thomas.hellstrom, tiwai, tzimmermann, xen-devel,
xiubli
On 11/15/2024 10:05 PM, Christophe JAILLET wrote:
> Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
>> Suggested-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
>> Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
>> ---
>> scripts/coccinelle/misc/secs_to_jiffies.cocci | 21 +++++++++++++++++++++
>> 1 file changed, 21 insertions(+)
>>
>> diff --git a/scripts/coccinelle/misc/secs_to_jiffies.cocci b/scripts/coccinelle/misc/secs_to_jiffies.cocci
>> new file mode 100644
>> index 0000000000000000000000000000000000000000..af762b1c0aac8f044f21150bfaafd9efc834ee87
>> --- /dev/null
>> +++ b/scripts/coccinelle/misc/secs_to_jiffies.cocci
>> @@ -0,0 +1,21 @@
>> +// SPDX-License-Identifier: GPL-2.0-only
>> +///
>> +/// Find usages of:
>> +/// - msecs_to_jiffies(value*1000)
>> +/// - msecs_to_jiffies(value*MSEC_PER_SEC)
>> +///
>> +// Confidence: High
>> +// Copyright: (C) 2024 Easwar Hariharan Microsoft
>> +//
>> +// Keywords: secs, seconds, jiffies
>> +//
>> +
>> +@@ constant C; @@
>> +
>> +- msecs_to_jiffies(C * 1000)
>> ++ secs_to_jiffies(C)
>> +
>> +@@ constant C; @@
>> +
>> +- msecs_to_jiffies(C * MSEC_PER_SEC)
>> ++ secs_to_jiffies(C)
>>
> Hi,
>
> @@ constant C =~ "000"; @@
>
> * msecs_to_jiffies(C)
>
> also spots things like msecs_to_jiffies(1000)
>
> I'm not sure that coccinelle is enable to capture part of the regex to automate the removal of the 000 when converting from ms to s.
>
> Just my 2c,
>
> CJ
Thank you, I'll try that rule for the later parts. Thank you all for
helping with writing Coccinelle rules, I'm not familiar with
metaprogramming in general and Coccinelle in particular, so these are
super helpful.
- Easwar
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 01/21] netfilter: conntrack: Cleanup timeout definitions
2024-11-16 9:40 ` Christophe Leroy
@ 2024-11-18 18:13 ` Easwar Hariharan
0 siblings, 0 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-18 18:13 UTC (permalink / raw)
To: Christophe Leroy
Cc: 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, Thomas Hellströ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,
Roger Pau Monné,
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, Naveen N Rao,
Madhavan Srinivasan, eahariha, netfilter-devel, coreteam, netdev,
linux-kernel, cocci, linux-arm-kernel, linux-s390, dri-devel,
intel-xe, linux-scsi, xen-devel, linux-block, linux-wireless,
ath11k, linux-mm, linux-bluetooth, linux-staging,
linux-rpi-kernel, ceph-devel, live-patching, linux-sound,
etnaviv, oss-drivers, linuxppc-dev, Anna-Maria Behnsen
On 11/16/2024 1:40 AM, Christophe Leroy wrote:
>
>
> Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
>> [Vous ne recevez pas souvent de courriers de
>> eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à
>> https://aka.ms/LearnAboutSenderIdentification ]
>>
>> None of the higher order definitions are used anymore, so remove
>> definitions for minutes, hours, and days timeouts. Convert the seconds
>> denominated timeouts to secs_to_jiffies()
>
> There is very similar things with tcp_timeouts[] in
> nf_conntrack_proto_tcp.c, why not convert it as well ?
This patch happens to have been hand-modified and not by Coccinelle.
I'll consider tcp_timeouts[] for v3, but that actually seems to have
minute, hour, and days denominated timeouts, and replacing the 4 SECS
timeouts may actually hinder readability in that file.
>
>>
>> Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
>> ---
>> net/netfilter/nf_conntrack_proto_sctp.c | 21 ++++++++-------------
>> 1 file changed, 8 insertions(+), 13 deletions(-)
>>
>> diff --git a/net/netfilter/nf_conntrack_proto_sctp.c b/net/netfilter/
>> nf_conntrack_proto_sctp.c
>> index
>> 4cc97f971264ed779434ab4597dd0162586b3736..6c95ac96fa42a39acafb5b88a7cf8898010e911c 100644
>> --- a/net/netfilter/nf_conntrack_proto_sctp.c
>> +++ b/net/netfilter/nf_conntrack_proto_sctp.c
>> @@ -39,20 +39,15 @@ static const char *const sctp_conntrack_names[] = {
>> [SCTP_CONNTRACK_HEARTBEAT_SENT] = "HEARTBEAT_SENT",
>> };
>>
>> -#define SECS * HZ
>> -#define MINS * 60 SECS
>> -#define HOURS * 60 MINS
>> -#define DAYS * 24 HOURS
>> -
>> static const unsigned int sctp_timeouts[SCTP_CONNTRACK_MAX] = {
>> - [SCTP_CONNTRACK_CLOSED] = 10 SECS,
>> - [SCTP_CONNTRACK_COOKIE_WAIT] = 3 SECS,
>> - [SCTP_CONNTRACK_COOKIE_ECHOED] = 3 SECS,
>> - [SCTP_CONNTRACK_ESTABLISHED] = 210 SECS,
>> - [SCTP_CONNTRACK_SHUTDOWN_SENT] = 3 SECS,
>> - [SCTP_CONNTRACK_SHUTDOWN_RECD] = 3 SECS,
>> - [SCTP_CONNTRACK_SHUTDOWN_ACK_SENT] = 3 SECS,
>> - [SCTP_CONNTRACK_HEARTBEAT_SENT] = 30 SECS,
>> + [SCTP_CONNTRACK_CLOSED] = secs_to_jiffies(10),
>> + [SCTP_CONNTRACK_COOKIE_WAIT] = secs_to_jiffies(3),
>> + [SCTP_CONNTRACK_COOKIE_ECHOED] = secs_to_jiffies(3),
>> + [SCTP_CONNTRACK_ESTABLISHED] = secs_to_jiffies(210),
>> + [SCTP_CONNTRACK_SHUTDOWN_SENT] = secs_to_jiffies(3),
>> + [SCTP_CONNTRACK_SHUTDOWN_RECD] = secs_to_jiffies(3),
>> + [SCTP_CONNTRACK_SHUTDOWN_ACK_SENT] = secs_to_jiffies(3),
>> + [SCTP_CONNTRACK_HEARTBEAT_SENT] = secs_to_jiffies(3),
>
> Was 30 before, if you think it must be changed to 3 you must explain it
> in the commit message, or maybe do another patch for that change.
This one's a typo, I'll fix it in v3.
Thanks,
Easwar
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 02/21] coccinelle: misc: Add secs_to_jiffies script
2024-11-16 9:52 ` Christophe Leroy
@ 2024-11-18 18:14 ` Easwar Hariharan
0 siblings, 0 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-18 18:14 UTC (permalink / raw)
To: Christophe Leroy
Cc: 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, Thomas Hellströ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,
Roger Pau Monné,
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, Naveen N Rao,
Madhavan Srinivasan, eahariha, netfilter-devel, coreteam, netdev,
linux-kernel, cocci, linux-arm-kernel, linux-s390, dri-devel,
intel-xe, linux-scsi, xen-devel, linux-block, linux-wireless,
ath11k, linux-mm, linux-bluetooth, linux-staging,
linux-rpi-kernel, ceph-devel, live-patching, linux-sound,
etnaviv, oss-drivers, linuxppc-dev, Anna-Maria Behnsen
On 11/16/2024 1:52 AM, Christophe Leroy wrote:
>
>
> Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
>> [Vous ne recevez pas souvent de courriers de
>> eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à
>> https://aka.ms/LearnAboutSenderIdentification ]
>>
>
> There should be some explaination in the commit message, what the script
> does for instance.
>
Thanks, will expand on this in v3.
- Easwar
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 19/21] livepatch: Convert timeouts to secs_to_jiffies()
2024-11-18 11:06 ` Petr Mladek
@ 2024-11-18 18:18 ` Easwar Hariharan
2024-11-19 1:43 ` zhang warden
2024-11-19 8:52 ` Petr Mladek
0 siblings, 2 replies; 59+ messages in thread
From: Easwar Hariharan @ 2024-11-18 18:18 UTC (permalink / raw)
To: Petr Mladek
Cc: Christophe Leroy, eahariha, 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,
Thomas Hellströ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, Roger Pau Monné,
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, Joe Lawrence, Jaroslav Kysela, Takashi Iwai,
Lucas Stach, Russell King, Christian Gmeiner, Louis Peens,
Michael Ellerman, Nicholas Piggin, Naveen N Rao,
Madhavan Srinivasan, netfilter-devel, coreteam, netdev,
linux-kernel, cocci, linux-arm-kernel, linux-s390, dri-devel,
intel-xe, linux-scsi, xen-devel, linux-block, linux-wireless,
ath11k, linux-mm, linux-bluetooth, linux-staging,
linux-rpi-kernel, ceph-devel, live-patching, linux-sound,
etnaviv, oss-drivers, linuxppc-dev, Anna-Maria Behnsen
On 11/18/2024 3:06 AM, Petr Mladek wrote:
> On Sat 2024-11-16 11:10:52, Christophe Leroy wrote:
>>
>>
>> Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
>>> [Vous ne recevez pas souvent de courriers de eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
>>>
>>> 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 <eahariha@linux.microsoft.com>
>>> ---
>>> samples/livepatch/livepatch-callbacks-busymod.c | 2 +-
>>> samples/livepatch/livepatch-shadow-fix1.c | 2 +-
>>> samples/livepatch/livepatch-shadow-mod.c | 10 +++++-----
>>> 3 files changed, 7 insertions(+), 7 deletions(-)
>>>
>>> diff --git a/samples/livepatch/livepatch-callbacks-busymod.c b/samples/livepatch/livepatch-callbacks-busymod.c
>>> index 378e2d40271a9717d09eff51d3d3612c679736fc..d0fd801a7c21b7d7939c29d83f9d993badcc9aba 100644
>>> --- a/samples/livepatch/livepatch-callbacks-busymod.c
>>> +++ b/samples/livepatch/livepatch-callbacks-busymod.c
>>> @@ -45,7 +45,7 @@ static int livepatch_callbacks_mod_init(void)
>>> {
>>> pr_info("%s\n", __func__);
>>> schedule_delayed_work(&work,
>>> - msecs_to_jiffies(1000 * 0));
>>> + secs_to_jiffies(0));
>>
>> Using secs_to_jiffies() is pointless, 0 is universal, should become
>> schedule_delayed_work(&work, 0);
>
> Yes, schedule_delayed_work(&work, 0) looks like the right solution.
>
> Or even better, it seems that the delayed work might get replaced by
> a normal workqueue work.
>
> Anyway, I am working on a patchset which would remove this sample
> module. There is no need to put much effort into the clean up
> of this particular module. Do whatever is easiest for you.
>
> Best Regards,
> Petr
If we're removing the module, I'll drop it from the series. Just to
clarify, do you mean to remove all of samples/livepatch/* or some
particular file(s)?
Thanks,
Easwar
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 19/21] livepatch: Convert timeouts to secs_to_jiffies()
2024-11-18 18:18 ` Easwar Hariharan
@ 2024-11-19 1:43 ` zhang warden
2024-11-19 8:52 ` Petr Mladek
1 sibling, 0 replies; 59+ messages in thread
From: zhang warden @ 2024-11-19 1:43 UTC (permalink / raw)
To: Easwar Hariharan
Cc: Petr Mladek, Christophe Leroy, 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, Thomas Hellströ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,
Roger Pau Monné,
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, Joe Lawrence, Jaroslav Kysela, Takashi Iwai,
Lucas Stach, Russell King, Christian Gmeiner, Louis Peens,
Michael Ellerman, Nicholas Piggin, Naveen N Rao,
Madhavan Srinivasan, netfilter-devel, coreteam, netdev,
linux-kernel, cocci, linux-arm-kernel, linux-s390, dri-devel,
intel-xe, linux-scsi, xen-devel, linux-block, linux-wireless,
ath11k, linux-mm, linux-bluetooth, linux-staging,
linux-rpi-kernel, ceph-devel, live-patching, linux-sound,
etnaviv, oss-drivers, linuxppc-dev, Anna-Maria Behnsen
> On Nov 19, 2024, at 02:18, Easwar Hariharan <eahariha@linux.microsoft.com> wrote:
>
> On 11/18/2024 3:06 AM, Petr Mladek wrote:
>> On Sat 2024-11-16 11:10:52, Christophe Leroy wrote:
>>>
>>>
>>> Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
>>>> [Vous ne recevez pas souvent de courriers de eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
>>>>
>>>> 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 <eahariha@linux.microsoft.com>
>>>> ---
>>>> samples/livepatch/livepatch-callbacks-busymod.c | 2 +-
>>>> samples/livepatch/livepatch-shadow-fix1.c | 2 +-
>>>> samples/livepatch/livepatch-shadow-mod.c | 10 +++++-----
>>>> 3 files changed, 7 insertions(+), 7 deletions(-)
>>>>
>>>> diff --git a/samples/livepatch/livepatch-callbacks-busymod.c b/samples/livepatch/livepatch-callbacks-busymod.c
>>>> index 378e2d40271a9717d09eff51d3d3612c679736fc..d0fd801a7c21b7d7939c29d83f9d993badcc9aba 100644
>>>> --- a/samples/livepatch/livepatch-callbacks-busymod.c
>>>> +++ b/samples/livepatch/livepatch-callbacks-busymod.c
>>>> @@ -45,7 +45,7 @@ static int livepatch_callbacks_mod_init(void)
>>>> {
>>>> pr_info("%s\n", __func__);
>>>> schedule_delayed_work(&work,
>>>> - msecs_to_jiffies(1000 * 0));
>>>> + secs_to_jiffies(0));
>>>
>>> Using secs_to_jiffies() is pointless, 0 is universal, should become
>>> schedule_delayed_work(&work, 0);
>>
>> Yes, schedule_delayed_work(&work, 0) looks like the right solution.
>>
>> Or even better, it seems that the delayed work might get replaced by
>> a normal workqueue work.
>>
>> Anyway, I am working on a patchset which would remove this sample
>> module. There is no need to put much effort into the clean up
>> of this particular module. Do whatever is easiest for you.
>>
>> Best Regards,
>> Petr
>
> If we're removing the module, I'll drop it from the series. Just to
> clarify, do you mean to remove all of samples/livepatch/* or some
> particular file(s)?
>
> Thanks,
> Easwar
>
Hi Easwar!
I think Petr is going to remove just this module away. Anyway, I don't think
removing all of them is a good idea.
Thanks.
Wardenjohn.
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 19/21] livepatch: Convert timeouts to secs_to_jiffies()
2024-11-18 18:18 ` Easwar Hariharan
2024-11-19 1:43 ` zhang warden
@ 2024-11-19 8:52 ` Petr Mladek
2024-11-19 9:09 ` Miroslav Benes
1 sibling, 1 reply; 59+ messages in thread
From: Petr Mladek @ 2024-11-19 8:52 UTC (permalink / raw)
To: Easwar Hariharan
Cc: Christophe Leroy, 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,
Thomas Hellströ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, Roger Pau Monné,
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, Joe Lawrence, Jaroslav Kysela, Takashi Iwai,
Lucas Stach, Russell King, Christian Gmeiner, Louis Peens,
Michael Ellerman, Nicholas Piggin, Naveen N Rao,
Madhavan Srinivasan, netfilter-devel, coreteam, netdev,
linux-kernel, cocci, linux-arm-kernel, linux-s390, dri-devel,
intel-xe, linux-scsi, xen-devel, linux-block, linux-wireless,
ath11k, linux-mm, linux-bluetooth, linux-staging,
linux-rpi-kernel, ceph-devel, live-patching, linux-sound,
etnaviv, oss-drivers, linuxppc-dev, Anna-Maria Behnsen
On Mon 2024-11-18 10:18:49, Easwar Hariharan wrote:
> On 11/18/2024 3:06 AM, Petr Mladek wrote:
> > On Sat 2024-11-16 11:10:52, Christophe Leroy wrote:
> >>
> >>
> >> Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
> >>> [Vous ne recevez pas souvent de courriers de eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
> >>>
> >>> 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 <eahariha@linux.microsoft.com>
> >>> ---
> >>> samples/livepatch/livepatch-callbacks-busymod.c | 2 +-
> >>> samples/livepatch/livepatch-shadow-fix1.c | 2 +-
> >>> samples/livepatch/livepatch-shadow-mod.c | 10 +++++-----
> >>> 3 files changed, 7 insertions(+), 7 deletions(-)
> >>>
> >>> diff --git a/samples/livepatch/livepatch-callbacks-busymod.c b/samples/livepatch/livepatch-callbacks-busymod.c
> >>> index 378e2d40271a9717d09eff51d3d3612c679736fc..d0fd801a7c21b7d7939c29d83f9d993badcc9aba 100644
> >>> --- a/samples/livepatch/livepatch-callbacks-busymod.c
> >>> +++ b/samples/livepatch/livepatch-callbacks-busymod.c
> >>> @@ -45,7 +45,7 @@ static int livepatch_callbacks_mod_init(void)
> >>> {
> >>> pr_info("%s\n", __func__);
> >>> schedule_delayed_work(&work,
> >>> - msecs_to_jiffies(1000 * 0));
> >>> + secs_to_jiffies(0));
> >>
> >> Using secs_to_jiffies() is pointless, 0 is universal, should become
> >> schedule_delayed_work(&work, 0);
> >
> > Yes, schedule_delayed_work(&work, 0) looks like the right solution.
> >
> > Or even better, it seems that the delayed work might get replaced by
> > a normal workqueue work.
> >
> > Anyway, I am working on a patchset which would remove this sample
> > module. There is no need to put much effort into the clean up
> > of this particular module. Do whatever is easiest for you.
> >
> > Best Regards,
> > Petr
>
> If we're removing the module, I'll drop it from the series. Just to
> clarify, do you mean to remove all of samples/livepatch/* or some
> particular file(s)?
To be precise, I am going to replace:
samples/livepatch/livepatch-callbacks-demo.c
samples/livepatch/livepatch-callbacks-mod.c
samples/livepatch/livepatch-callbacks-busymod.c
with a completely different modules because I am reworking the
callbacks API.
All other sample modules are going to stay.
Feel free to remove livepatch-callbacks-busymod.c from the patchset.
But also feel free to keep it. The API rework goes slowly. I am not
sure if it would be ready for 6.14.
Best Regards,
Petr
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 19/21] livepatch: Convert timeouts to secs_to_jiffies()
2024-11-19 8:52 ` Petr Mladek
@ 2024-11-19 9:09 ` Miroslav Benes
0 siblings, 0 replies; 59+ messages in thread
From: Miroslav Benes @ 2024-11-19 9:09 UTC (permalink / raw)
To: Petr Mladek
Cc: Easwar Hariharan, Christophe Leroy, 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, Thomas Hellströ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,
Roger Pau Monné,
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,
Joe Lawrence, Jaroslav Kysela, Takashi Iwai, Lucas Stach,
Russell King, Christian Gmeiner, Louis Peens, Michael Ellerman,
Nicholas Piggin, Naveen N Rao, Madhavan Srinivasan,
netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
[-- Attachment #1: Type: text/plain, Size: 3300 bytes --]
On Tue, 19 Nov 2024, Petr Mladek wrote:
> On Mon 2024-11-18 10:18:49, Easwar Hariharan wrote:
> > On 11/18/2024 3:06 AM, Petr Mladek wrote:
> > > On Sat 2024-11-16 11:10:52, Christophe Leroy wrote:
> > >>
> > >>
> > >> Le 15/11/2024 à 22:26, Easwar Hariharan a écrit :
> > >>> [Vous ne recevez pas souvent de courriers de eahariha@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
> > >>>
> > >>> 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 <eahariha@linux.microsoft.com>
> > >>> ---
> > >>> samples/livepatch/livepatch-callbacks-busymod.c | 2 +-
> > >>> samples/livepatch/livepatch-shadow-fix1.c | 2 +-
> > >>> samples/livepatch/livepatch-shadow-mod.c | 10 +++++-----
> > >>> 3 files changed, 7 insertions(+), 7 deletions(-)
> > >>>
> > >>> diff --git a/samples/livepatch/livepatch-callbacks-busymod.c b/samples/livepatch/livepatch-callbacks-busymod.c
> > >>> index 378e2d40271a9717d09eff51d3d3612c679736fc..d0fd801a7c21b7d7939c29d83f9d993badcc9aba 100644
> > >>> --- a/samples/livepatch/livepatch-callbacks-busymod.c
> > >>> +++ b/samples/livepatch/livepatch-callbacks-busymod.c
> > >>> @@ -45,7 +45,7 @@ static int livepatch_callbacks_mod_init(void)
> > >>> {
> > >>> pr_info("%s\n", __func__);
> > >>> schedule_delayed_work(&work,
> > >>> - msecs_to_jiffies(1000 * 0));
> > >>> + secs_to_jiffies(0));
> > >>
> > >> Using secs_to_jiffies() is pointless, 0 is universal, should become
> > >> schedule_delayed_work(&work, 0);
> > >
> > > Yes, schedule_delayed_work(&work, 0) looks like the right solution.
> > >
> > > Or even better, it seems that the delayed work might get replaced by
> > > a normal workqueue work.
> > >
> > > Anyway, I am working on a patchset which would remove this sample
> > > module. There is no need to put much effort into the clean up
> > > of this particular module. Do whatever is easiest for you.
> > >
> > > Best Regards,
> > > Petr
> >
> > If we're removing the module, I'll drop it from the series. Just to
> > clarify, do you mean to remove all of samples/livepatch/* or some
> > particular file(s)?
>
> To be precise, I am going to replace:
>
> samples/livepatch/livepatch-callbacks-demo.c
> samples/livepatch/livepatch-callbacks-mod.c
> samples/livepatch/livepatch-callbacks-busymod.c
>
> with a completely different modules because I am reworking the
> callbacks API.
>
> All other sample modules are going to stay.
>
> Feel free to remove livepatch-callbacks-busymod.c from the patchset.
> But also feel free to keep it. The API rework goes slowly. I am not
> sure if it would be ready for 6.14.
I would propose that Easwar goes on with his work and prepares an updated
version of the patch based on Christophe's feedback. That is, disregarding
Petr's rework for now. The patch set has a higher chance to be merged
sooner. Petr can then easily rebase. If there is a conflict, we will
handle it as usual. What do you think?
Miroslav
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 18/21] ceph: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 ` [PATCH v2 18/21] ceph: " Easwar Hariharan
@ 2024-11-28 12:28 ` Alex Markuze
0 siblings, 0 replies; 59+ messages in thread
From: Alex Markuze @ 2024-11-28 12:28 UTC (permalink / raw)
To: Easwar Hariharan
Cc: 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, Thomas Hellströ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,
Roger Pau Monné,
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, netfilter-devel, coreteam,
netdev, linux-kernel, cocci, linux-arm-kernel, linux-s390,
dri-devel, intel-xe, linux-scsi, xen-devel, linux-block,
linux-wireless, ath11k, linux-mm, linux-bluetooth, linux-staging,
linux-rpi-kernel, ceph-devel, live-patching, linux-sound,
etnaviv, oss-drivers, linuxppc-dev, Anna-Maria Behnsen
looks good
On Sat, Nov 16, 2024 at 12:32 AM Easwar Hariharan
<eahariha@linux.microsoft.com> wrote:
>
> 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 <eahariha@linux.microsoft.com>
> ---
> fs/ceph/quota.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/ceph/quota.c b/fs/ceph/quota.c
> index 06ee397e0c3a6172592e62dba95cd267cfff0db1..d90eda19bcc4618f98bfed833c10a6071cf2e2ac 100644
> --- a/fs/ceph/quota.c
> +++ b/fs/ceph/quota.c
> @@ -166,7 +166,7 @@ static struct inode *lookup_quotarealm_inode(struct ceph_mds_client *mdsc,
> if (IS_ERR(in)) {
> doutc(cl, "Can't lookup inode %llx (err: %ld)\n", realm->ino,
> PTR_ERR(in));
> - qri->timeout = jiffies + msecs_to_jiffies(60 * 1000); /* XXX */
> + qri->timeout = jiffies + secs_to_jiffies(60); /* XXX */
> } else {
> qri->timeout = 0;
> qri->inode = in;
>
> --
> 2.34.1
>
>
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
` (23 preceding siblings ...)
2024-11-16 10:23 ` LEROY Christophe
@ 2024-11-29 12:57 ` Przemek Kitszel
2024-12-06 20:58 ` Easwar Hariharan
24 siblings, 1 reply; 59+ messages in thread
From: Przemek Kitszel @ 2024-11-29 12:57 UTC (permalink / raw)
To: Easwar Hariharan
Cc: netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
[removed most non-list recipients, it's just too much]
On 11/15/24 10:26 PM, Easwar Hariharan wrote:
> This is a series that follows up on my previous series to introduce
> secs_to_jiffies() and convert a few initial users.[1] In the review for
> that series, Anna-Maria requested converting other users with
> Coccinelle. This is part 1 that converts users of msecs_to_jiffies()
> that use the multiply pattern of either of:
> - msecs_to_jiffies(N*1000), or
> - msecs_to_jiffies(N*MSEC_PER_SEC)
>
> The entire conversion is made with Coccinelle in the script added in
> patch 2. Some changes suggested by Coccinelle have been deferred to
> later parts that will address other possible variant patterns.
>
> CC: Anna-Maria Behnsen <anna-maria@linutronix.de>
> Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
>
> [1] https://lore.kernel.org/all/20241030-open-coded-timeouts-v3-0-9ba123facf88@linux.microsoft.com/
> [2] https://lore.kernel.org/all/8734kngfni.fsf@somnus/
>
> ---
> Changes in v2:
> - EDITME: describe what is new in this series revision.
> - EDITME: use bulletpoints and terse descriptions.
> - Link to v1: https://lore.kernel.org/r/20241115-converge-secs-to-jiffies-v1-0-19aadc34941b@linux.microsoft.com
that is not a proper changelog, you were supposed to edit those
placeholder entries; please look around for examples
There is also just too much recipients. Please split up your patches
into smaller pieces. You will also learn the process on a smaller
sample.
And definitively please wait for 48h before reposting such big series.
Regarding code - you could also convert msecs_to_jiffies(const * HZ),
there are 10 that are greppable.
>
> ---
> Easwar Hariharan (21):
> netfilter: conntrack: Cleanup timeout definitions
> coccinelle: misc: Add secs_to_jiffies script
> arm: pxa: Convert timeouts to use secs_to_jiffies()
> s390: kernel: Convert timeouts to use secs_to_jiffies()
> powerpc/papr_scm: Convert timeouts to secs_to_jiffies()
> mm: kmemleak: Convert timeouts to secs_to_jiffies()
> accel/habanalabs: Convert timeouts to secs_to_jiffies()
> drm/xe: Convert timeout to secs_to_jiffies()
> drm/etnaviv: Convert timeouts to secs_to_jiffies()
> scsi: lpfc: Convert timeouts to secs_to_jiffies()
> scsi: arcmsr: Convert timeouts to secs_to_jiffies()
> scsi: pm8001: Convert timeouts to secs_to_jiffies()
> xen/blkback: Convert timeouts to secs_to_jiffies()
> gve: Convert timeouts to secs_to_jiffies()
> wifi: ath11k: Convert timeouts to secs_to_jiffies()
> Bluetooth: MGMT: Convert timeouts to secs_to_jiffies()
> staging: vc04_services: Convert timeouts to secs_to_jiffies()
> ceph: Convert timeouts to secs_to_jiffies()
> livepatch: Convert timeouts to secs_to_jiffies()
> ALSA: line6: Convert timeouts to secs_to_jiffies()
> nfp: Convert timeouts to secs_to_jiffies()
>
> arch/arm/mach-pxa/sharpsl_pm.c | 6 +++---
> arch/powerpc/platforms/pseries/papr_scm.c | 2 +-
> arch/s390/kernel/lgr.c | 3 ++-
> arch/s390/kernel/time.c | 4 ++--
> arch/s390/kernel/topology.c | 2 +-
> drivers/accel/habanalabs/common/device.c | 2 +-
> drivers/accel/habanalabs/common/habanalabs_drv.c | 3 +--
> drivers/block/xen-blkback/blkback.c | 2 +-
> drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c | 2 +-
> drivers/gpu/drm/xe/xe_device.c | 2 +-
> drivers/net/ethernet/google/gve/gve_tx_dqo.c | 6 ++----
> drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 2 +-
> drivers/net/wireless/ath/ath11k/debugfs.c | 2 +-
> drivers/scsi/arcmsr/arcmsr_hba.c | 2 +-
> drivers/scsi/lpfc/lpfc_init.c | 18 +++++++++---------
> drivers/scsi/lpfc/lpfc_nportdisc.c | 8 ++++----
> drivers/scsi/lpfc/lpfc_nvme.c | 2 +-
> drivers/scsi/lpfc/lpfc_sli.c | 4 ++--
> drivers/scsi/lpfc/lpfc_vmid.c | 2 +-
> drivers/scsi/pm8001/pm8001_init.c | 2 +-
> .../vc04_services/bcm2835-audio/bcm2835-vchiq.c | 2 +-
> fs/ceph/quota.c | 2 +-
> mm/kmemleak.c | 4 ++--
> net/bluetooth/mgmt.c | 2 +-
> net/netfilter/nf_conntrack_proto_sctp.c | 21 ++++++++-------------
> samples/livepatch/livepatch-callbacks-busymod.c | 2 +-
> samples/livepatch/livepatch-shadow-fix1.c | 2 +-
> samples/livepatch/livepatch-shadow-mod.c | 10 +++++-----
> scripts/coccinelle/misc/secs_to_jiffies.cocci | 21 +++++++++++++++++++++
> sound/usb/line6/toneport.c | 2 +-
> 30 files changed, 79 insertions(+), 65 deletions(-)
> ---
> base-commit: 2d5404caa8c7bb5c4e0435f94b28834ae5456623
> change-id: 20241112-converge-secs-to-jiffies-d99d1016bd11
>
> Best regards,
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 09/21] drm/etnaviv: Convert timeouts to secs_to_jiffies()
2024-11-15 21:26 ` [PATCH v2 09/21] drm/etnaviv: Convert timeouts " Easwar Hariharan
@ 2024-12-02 21:16 ` Christian Gmeiner
0 siblings, 0 replies; 59+ messages in thread
From: Christian Gmeiner @ 2024-12-02 21:16 UTC (permalink / raw)
To: Easwar Hariharan
Cc: 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, Thomas Hellströ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,
Roger Pau Monné,
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, Louis Peens,
Michael Ellerman, Nicholas Piggin, Christophe Leroy,
Naveen N Rao, Madhavan Srinivasan, netfilter-devel, coreteam,
netdev, linux-kernel, cocci, linux-arm-kernel, linux-s390,
dri-devel, intel-xe, linux-scsi, xen-devel, linux-block,
linux-wireless, ath11k, linux-mm, linux-bluetooth, linux-staging,
linux-rpi-kernel, ceph-devel, live-patching, linux-sound,
etnaviv, oss-drivers, linuxppc-dev, Anna-Maria Behnsen
>
> 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 <eahariha@linux.microsoft.com>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
> ---
> drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c b/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c
> index 721d633aece9d4c81f0019e4c55884f26ee61c60..0f5a2c885d0ab7029c7248e15d6ea3c31823b782 100644
> --- a/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c
> +++ b/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c
> @@ -100,7 +100,7 @@ int etnaviv_cmdbuf_init(struct etnaviv_cmdbuf_suballoc *suballoc,
> mutex_unlock(&suballoc->lock);
> ret = wait_event_interruptible_timeout(suballoc->free_event,
> suballoc->free_space,
> - msecs_to_jiffies(10 * 1000));
> + secs_to_jiffies(10));
> if (!ret) {
> dev_err(suballoc->dev,
> "Timeout waiting for cmdbuf space\n");
>
> --
> 2.34.1
>
--
greets
--
Christian Gmeiner, MSc
https://christian-gmeiner.info/privacypolicy
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()
2024-11-29 12:57 ` Przemek Kitszel
@ 2024-12-06 20:58 ` Easwar Hariharan
2024-12-09 12:01 ` Przemek Kitszel
0 siblings, 1 reply; 59+ messages in thread
From: Easwar Hariharan @ 2024-12-06 20:58 UTC (permalink / raw)
To: Przemek Kitszel
Cc: eahariha, netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
On 11/29/2024 4:57 AM, Przemek Kitszel wrote:
>
> [removed most non-list recipients, it's just too much]
>
> On 11/15/24 10:26 PM, Easwar Hariharan wrote:
<snip>
>>
>> ---
>> Changes in v2:
>> - EDITME: describe what is new in this series revision.
>> - EDITME: use bulletpoints and terse descriptions.
>> - Link to v1: https://lore.kernel.org/r/20241115-converge-secs-to-
>> jiffies-v1-0-19aadc34941b@linux.microsoft.com
>
> that is not a proper changelog, you were supposed to edit those
> placeholder entries; please look around for examples
>
> There is also just too much recipients. Please split up your patches
> into smaller pieces. You will also learn the process on a smaller
> sample.
>
> And definitively please wait for 48h before reposting such big series.
Yes, sorry, I sent out a v2 in a moment of panic on including the
already accepted patch in v1. I failed to edit the changelog in that
same panic. I'll try to not panic and do better in the future.
>
> Regarding code - you could also convert msecs_to_jiffies(const * HZ),
> there are 10 that are greppable.
>
Those seem to be mistakes. const*HZ is a seconds-denominated timeout,
being passed to msecs_to_jiffies() which will treat it as a
millisecond-denominated timeout resulting in an excessively long
timeout. I suppose that's better than a too-short timeout, and
apparently it's been working fine all along since hardware responds
before the too-long timeout expires. Half of them are in
drivers/scsi/arcmsr/arcmsr_hba.c and the pattern has apparently been
there since 2010.
Thanks,
Easwar
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()
2024-12-06 20:58 ` Easwar Hariharan
@ 2024-12-09 12:01 ` Przemek Kitszel
2024-12-09 12:45 ` Christophe Leroy
0 siblings, 1 reply; 59+ messages in thread
From: Przemek Kitszel @ 2024-12-09 12:01 UTC (permalink / raw)
To: Easwar Hariharan
Cc: netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
On 12/6/24 9:58 PM, Easwar Hariharan wrote:
> On 11/29/2024 4:57 AM, Przemek Kitszel wrote:
>>
>> [removed most non-list recipients, it's just too much]
>>
>> On 11/15/24 10:26 PM, Easwar Hariharan wrote:
> <snip>
>>
>> Regarding code - you could also convert msecs_to_jiffies(const * HZ),
>> there are 10 that are greppable.
>>
>
> Those seem to be mistakes. const*HZ is a seconds-denominated timeout,
> being passed to msecs_to_jiffies() which will treat it as a
> millisecond-denominated timeout resulting in an excessively long
> timeout. I suppose that's better than a too-short timeout, and
> apparently it's been working fine all along since hardware responds
> before the too-long timeout expires. Half of them are in
> drivers/scsi/arcmsr/arcmsr_hba.c and the pattern has apparently been
> there since 2010.
my point was that, the default value of HZ is 1000, and most of the code
that is just `$value*HZ` was meant as "$value seconds, in ms unit".
Same for HZ/const, HZ/2 being 500ms.
HZ is awful in that it is not 1s but 1/s, but it was easy to abuse the
value in simple context.
If you happen to touch this, please do in a separate series, to get more
attention from drivers owners.
>
> Thanks,
> Easwar
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()
2024-12-09 12:01 ` Przemek Kitszel
@ 2024-12-09 12:45 ` Christophe Leroy
2024-12-09 15:03 ` Przemek Kitszel
0 siblings, 1 reply; 59+ messages in thread
From: Christophe Leroy @ 2024-12-09 12:45 UTC (permalink / raw)
To: Przemek Kitszel, Easwar Hariharan
Cc: netfilter-devel, coreteam, netdev, linux-kernel, cocci,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, linux-rpi-kernel, ceph-devel,
live-patching, linux-sound, etnaviv, oss-drivers, linuxppc-dev,
Anna-Maria Behnsen
Le 09/12/2024 à 13:01, Przemek Kitszel a écrit :
> On 12/6/24 9:58 PM, Easwar Hariharan wrote:
>> On 11/29/2024 4:57 AM, Przemek Kitszel wrote:
>>>
>>> [removed most non-list recipients, it's just too much]
>>>
>>> On 11/15/24 10:26 PM, Easwar Hariharan wrote:
>> <snip>
>
>>>
>>> Regarding code - you could also convert msecs_to_jiffies(const * HZ),
>>> there are 10 that are greppable.
>>>
>>
>> Those seem to be mistakes. const*HZ is a seconds-denominated timeout,
>> being passed to msecs_to_jiffies() which will treat it as a
>> millisecond-denominated timeout resulting in an excessively long
>> timeout. I suppose that's better than a too-short timeout, and
>> apparently it's been working fine all along since hardware responds
>> before the too-long timeout expires. Half of them are in
>> drivers/scsi/arcmsr/arcmsr_hba.c and the pattern has apparently been
>> there since 2010.
>
> my point was that, the default value of HZ is 1000, and most of the code
> that is just `$value*HZ` was meant as "$value seconds, in ms unit".
I can't follow you here. The default value of HZ is 250 as far as I can see.
Regardless, HZ is the number of jiffies per second, nothing else.
>
> Same for HZ/const, HZ/2 being 500ms.
>
> HZ is awful in that it is not 1s but 1/s, but it was easy to abuse the
> value in simple context.
Why is that awful ?
HZ is a nice macro that gives you the number of ticks per second, so
that you are able to easily calculate the number of ticks for a given
duration, regardless of the configured number of ticks per second.
Christophe
^ permalink raw reply [flat|nested] 59+ messages in thread
* Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()
2024-12-09 12:45 ` Christophe Leroy
@ 2024-12-09 15:03 ` Przemek Kitszel
0 siblings, 0 replies; 59+ messages in thread
From: Przemek Kitszel @ 2024-12-09 15:03 UTC (permalink / raw)
To: Christophe Leroy, Easwar Hariharan
Cc: netfilter-devel, coreteam, netdev, linux-kernel,
linux-arm-kernel, linux-s390, dri-devel, intel-xe, linux-scsi,
xen-devel, linux-block, linux-wireless, ath11k, linux-mm,
linux-bluetooth, linux-staging, ceph-devel, live-patching,
linux-sound, etnaviv, oss-drivers, linuxppc-dev
On 12/9/24 1:45 PM, Christophe Leroy wrote:
>
>
> Le 09/12/2024 à 13:01, Przemek Kitszel a écrit :
>> On 12/6/24 9:58 PM, Easwar Hariharan wrote:
>>> On 11/29/2024 4:57 AM, Przemek Kitszel wrote:
>>>>
>>>> [removed most non-list recipients, it's just too much]
>>>>
>>>> On 11/15/24 10:26 PM, Easwar Hariharan wrote:
>>> <snip>
>>
>>>>
>>>> Regarding code - you could also convert msecs_to_jiffies(const * HZ),
>>>> there are 10 that are greppable.
Thanks to Christope, I re-examined those ~10 cases, and that should be
refactored by just dropping msec_to_jiffies() part, not replacing
by sec_to_jiffies().
>>>>
>>>
>>> Those seem to be mistakes. const*HZ is a seconds-denominated timeout,
>>> being passed to msecs_to_jiffies() which will treat it as a
>>> millisecond-denominated timeout resulting in an excessively long
>>> timeout. I suppose that's better than a too-short timeout, and
>>> apparently it's been working fine all along since hardware responds
>>> before the too-long timeout expires. Half of them are in
>>> drivers/scsi/arcmsr/arcmsr_hba.c and the pattern has apparently been
>>> there since 2010.
>>
>> my point was that, the default value of HZ is 1000, and most of the code
>> that is just `$value*HZ` was meant as "$value seconds, in ms unit".
>
> I can't follow you here. The default value of HZ is 250 as far as I can
> see.
as default I understand "the value that is effective for those that
don't tweak", not necessarily "the fallback that will be used when not
set by any other means". On my RedHat and Fedora boxes it's 1000.
>
> Regardless, HZ is the number of jiffies per second, nothing else.
That is true. But the name is wrong.
>
>>
>> Same for HZ/const, HZ/2 being 500ms.
>>
>> HZ is awful in that it is not 1s but 1/s, but it was easy to abuse the
>> value in simple context.
>
> Why is that awful ?
so, 1Hertz = 1/1s == once per second,
something happening twice per second, with freq of 2Hz, repeats
each HZ/2 jiffies
https://en.wikipedia.org/wiki/Hertz
the #define name should be really JHZ -> JIFFIES_PER_SECOND
>
> HZ is a nice macro that gives you the number of ticks per second, so
> that you are able to easily calculate the number of ticks for a given
> duration, regardless of the configured number of ticks per second.
Again, technically true, but default being eq to number of msec in sec,
causes it to bite.
^ permalink raw reply [flat|nested] 59+ messages in thread
end of thread, other threads:[~2024-12-09 15:03 UTC | newest]
Thread overview: 59+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-15 21:26 [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 01/21] netfilter: conntrack: Cleanup timeout definitions Easwar Hariharan
2024-11-15 22:34 ` Stephen Rothwell
2024-11-16 0:13 ` Easwar Hariharan
2024-11-16 9:40 ` Christophe Leroy
2024-11-18 18:13 ` Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 02/21] coccinelle: misc: Add secs_to_jiffies script Easwar Hariharan
2024-11-16 6:05 ` Christophe JAILLET
2024-11-18 18:09 ` Easwar Hariharan
2024-11-16 9:52 ` Christophe Leroy
2024-11-18 18:14 ` Easwar Hariharan
2024-11-16 10:23 ` [cocci] " Markus Elfring
2024-11-15 21:26 ` [PATCH v2 03/21] arm: pxa: Convert timeouts to use secs_to_jiffies() Easwar Hariharan
2024-11-16 10:26 ` Christophe Leroy
2024-11-15 21:26 ` [PATCH v2 04/21] s390: kernel: " Easwar Hariharan
2024-11-18 8:26 ` Heiko Carstens
2024-11-15 21:26 ` [PATCH v2 05/21] powerpc/papr_scm: Convert timeouts to secs_to_jiffies() Easwar Hariharan
2024-11-16 10:06 ` Christophe Leroy
2024-11-16 10:40 ` Dan Carpenter
2024-11-16 11:24 ` Julia Lawall
2024-11-15 21:26 ` [PATCH v2 06/21] mm: kmemleak: " Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 07/21] accel/habanalabs: " Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 08/21] drm/xe: Convert timeout " Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 09/21] drm/etnaviv: Convert timeouts " Easwar Hariharan
2024-12-02 21:16 ` Christian Gmeiner
2024-11-15 21:26 ` [PATCH v2 10/21] scsi: lpfc: " Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 11/21] scsi: arcmsr: " Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 12/21] scsi: pm8001: " Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 13/21] xen/blkback: " Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 14/21] gve: " Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 15/21] wifi: ath11k: " Easwar Hariharan
2024-11-15 22:59 ` Jeff Johnson
2024-11-15 21:26 ` [PATCH v2 16/21] Bluetooth: MGMT: " Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 17/21] staging: vc04_services: " Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 18/21] ceph: " Easwar Hariharan
2024-11-28 12:28 ` Alex Markuze
2024-11-15 21:26 ` [PATCH v2 19/21] livepatch: " Easwar Hariharan
2024-11-16 10:10 ` Christophe Leroy
2024-11-18 11:06 ` Petr Mladek
2024-11-18 18:18 ` Easwar Hariharan
2024-11-19 1:43 ` zhang warden
2024-11-19 8:52 ` Petr Mladek
2024-11-19 9:09 ` Miroslav Benes
2024-11-15 21:26 ` [PATCH v2 20/21] ALSA: line6: " Easwar Hariharan
2024-11-15 21:26 ` [PATCH v2 21/21] nfp: " Easwar Hariharan
2024-11-16 10:13 ` Christophe Leroy
2024-11-15 21:29 ` [PATCH v2 00/21] Converge on using secs_to_jiffies() Easwar Hariharan
2024-11-15 21:41 ` Jeff Johnson
2024-11-15 22:15 ` Easwar Hariharan
2024-11-15 23:20 ` Thomas Gleixner
2024-11-16 7:46 ` Christophe Leroy
2024-11-16 10:16 ` Christophe Leroy
2024-11-16 10:23 ` LEROY Christophe
2024-11-18 18:07 ` Easwar Hariharan
2024-11-29 12:57 ` Przemek Kitszel
2024-12-06 20:58 ` Easwar Hariharan
2024-12-09 12:01 ` Przemek Kitszel
2024-12-09 12:45 ` Christophe Leroy
2024-12-09 15:03 ` Przemek Kitszel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox