linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Converge on using secs_to_jiffies() part two
@ 2025-02-03 23:50 Easwar Hariharan
  2025-02-03 23:50 ` [PATCH v2 1/3] coccinelle: misc: secs_to_jiffies: Patch expressions too Easwar Hariharan
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Easwar Hariharan @ 2025-02-03 23:50 UTC (permalink / raw)
  To: Andrew Morton, Julia Lawall, Nicolas Palix, Ilya Dryomov,
	Dongsheng Yang, Jens Axboe, Xiubo Li
  Cc: cocci, linux-kernel, ceph-devel, linux-block, Easwar Hariharan

This is the second series (part 1*) that converts users of msecs_to_jiffies() that
either use the multiply pattern of either of:
- msecs_to_jiffies(N*1000) or
- msecs_to_jiffies(N*MSEC_PER_SEC)

where N is a constant or an expression, to avoid the multiplication.

The conversion is made with Coccinelle with the secs_to_jiffies() script
in scripts/coccinelle/misc. Attention is paid to what the best change
can be rather than restricting to what the tool provides.

Andrew has kindly agreed to take the series through mm.git modulo the
patches maintainers want to pick through their own trees.

This series is based on next-20250203

Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>

* https://lore.kernel.org/all/20241210-converge-secs-to-jiffies-v3-0-ddfefd7e9f2a@linux.microsoft.com/

---
Changes in v2:
- Remove unneeded range checks in rbd and libceph. While there, convert
  some timeouts that should have been fixed in part 1. (Ilya)
- Fixup secs_to_jiffies.cocci to be a bit more verbose
- Link to v1: https://lore.kernel.org/r/20250128-converge-secs-to-jiffies-part-two-v1-0-9a6ecf0b2308@linux.microsoft.com

---
Easwar Hariharan (3):
      coccinelle: misc: secs_to_jiffies: Patch expressions too
      rbd: convert timeouts to secs_to_jiffies()
      libceph: convert timeouts to secs_to_jiffies()

 drivers/block/rbd.c                           |  8 +++-----
 include/linux/ceph/libceph.h                  | 12 ++++++------
 net/ceph/ceph_common.c                        | 18 ++++++------------
 net/ceph/osd_client.c                         |  3 +--
 scripts/coccinelle/misc/secs_to_jiffies.cocci | 10 ++++++++++
 5 files changed, 26 insertions(+), 25 deletions(-)
---
base-commit: 00f3246adeeacbda0bd0b303604e46eb59c32e6e
change-id: 20241217-converge-secs-to-jiffies-part-two-f44017aa6f67

Best regards,
-- 
Easwar Hariharan <eahariha@linux.microsoft.com>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-02-04 20:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-03 23:50 [PATCH v2 0/3] Converge on using secs_to_jiffies() part two Easwar Hariharan
2025-02-03 23:50 ` [PATCH v2 1/3] coccinelle: misc: secs_to_jiffies: Patch expressions too Easwar Hariharan
2025-02-04  7:56   ` [cocci] " Markus Elfring
2025-02-04 16:20     ` Easwar Hariharan
2025-02-04 20:24       ` [cocci] [v2 " Markus Elfring
2025-02-03 23:50 ` [PATCH v2 2/3] rbd: convert timeouts to secs_to_jiffies() Easwar Hariharan
2025-02-04 20:15   ` Ilya Dryomov
2025-02-03 23:50 ` [PATCH v2 3/3] libceph: " Easwar Hariharan
2025-02-04 20:16   ` Ilya Dryomov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).