So many different locking technologies in the modern kernel!? Help!

71 views
Skip to first unread message

Kaiwan N Billimoria

unread,
Nov 26, 2025, 1:51:34 AM11/26/25
to Kernel Meetup Bangalore
Hi all,
Pl find my talk proposal below, thanks.

Title:
So many different locking technologies in the modern kernel!? Help!
Sub-heading: Data Races, Locking tech, Which to use When

Format: Regular (25+5 min)
Audience: Beginner to Intermediate

Abstract:
Glance at the code of pretty much any kernel component or driver, and, when you're new to them, the various locking APIs they routinely employ can simply overwhelm. From the famous spinlock to the newly fashionable guard locks and everything in-between: sleeping locks (the mutex and yes, even the semaphore), to spinning locks (different spinlock variations and the reader-writer locks), specialized atomic / refcount integer and bit-op locking, and the subtle-yet-powerful lock-free technologies - the per-cpu and RCU primitives. It can indeed leave one's head spinning (like the lock)!

Obviously, only when your kernel / driver code uses tight, proven and efficient locking can it be considered production-ready. Learning how to use the lock APIs isn't too difficult; more importantly, we need to understand the _why and when_ of using different lock types, and their performance characteristics, given the circumstances. This talk attempts to throw light on this key area.

Brief Agenda:
- What exactly constitutes a data race (and a critical section)
- Deadlock and mitigations
- Kernel synchronization - available primitives overview
- Summary table of Linux kernel locking tech with key characteristics of each.

Brief Bio:
Kaiwan is a pretty much career-long Linux developer, trainer, author
and enthusiast. He started his Linux journey around 1997 and hasn’t
looked back. Along the way, he has helped via corporate training, both
in-country and internationally, and has (as of now) written five books
on Linux systems domain topics (https://amazon.com/author/kaiwanbillimoria).

Thanks and Regards,

photo

Kaiwan N Billimoria
Founder, kaiwanTECH (Designer Graphics)

bit.ly/m/kaiwan

kaiwantech.com  |  https://amazon.com/author/kaiwanbillimoria

kai...@kaiwantech.com / kaiwan.b...@gmail.com

4931, 11th Floor, Highpoint IV, 45 Palace Road, Bangalore 560001, India.

linkedin

amazon

github

wordpress

twitter

googlemaps

"If you think training is expensive, try ignorance", Peter Drucker."Knowing is not enough; we must apply.Willing is not enough; we must do"- JW Goethe

Green

Please consider the environment before printing this e-mail!

IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email by mistake, please notify the sender immediately and do not disclose the contents to anyone or make copies thereof.

 
__tpx__

Suchit Karunakaran

unread,
Nov 26, 2025, 2:48:35 AM11/26/25
to Kaiwan N Billimoria, Kernel Meetup Bangalore
+1

--
You received this message because you are subscribed to the Google Groups "Kernel Meetup Bangalore" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kernel-meetup-ban...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/kernel-meetup-bangalore/CAPDLWs8ChCcEqw1fat-pwckOuawvELbOD7Wz0XB%2BKsduAyK9-g%40mail.gmail.com.

Dheeraj Reddy

unread,
Nov 26, 2025, 3:29:09 AM11/26/25
to Suchit Karunakaran, Kaiwan N Billimoria, Kernel Meetup Bangalore

pmo...@gmail.com

unread,
Nov 26, 2025, 3:36:52 AM11/26/25
to Kernel Meetup Bangalore
+1

Jaimin Parmar

unread,
Nov 26, 2025, 4:02:02 AM11/26/25
to Kaiwan N Billimoria, Kernel Meetup Bangalore
++1

On Wed, 26 Nov, 2025, 12:21 pm Kaiwan N Billimoria, <kaiwan.b...@gmail.com> wrote:
--

Aditya Gupta

unread,
Nov 26, 2025, 12:39:33 PM11/26/25
to Kaiwan N Billimoria, Kernel Meetup Bangalore
+1

On 26/11/25 12:21, Kaiwan N Billimoria wrote:
> Hi all,
> Pl find my talk proposal below, thanks.
>
> Title:
> So many different locking technologies in the modern kernel!? Help!
> Sub-heading: Data Races, Locking tech, Which to use When
>
> ...
>

Nilay Shroff

unread,
Nov 27, 2025, 2:20:49 AM11/27/25
to Aditya Gupta, Kaiwan N Billimoria, Kernel Meetup Bangalore
+1

--
You received this message because you are subscribed to the Google Groups "Kernel Meetup Bangalore" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kernel-meetup-ban...@googlegroups.com.

Balakumaran Kannan

unread,
Nov 27, 2025, 8:33:47 AM11/27/25
to Nilay Shroff, Aditya Gupta, Kaiwan N Billimoria, Kernel Meetup Bangalore

Avi Roy

unread,
Nov 27, 2025, 10:23:39 PM11/27/25
to Suchit Karunakaran, Kaiwan N Billimoria, Kernel Meetup Bangalore

samir mulani

unread,
Nov 28, 2025, 8:41:45 AM11/28/25
to Kaiwan N Billimoria, Kernel Meetup Bangalore
+1

--

Sumit Gupta

unread,
Nov 28, 2025, 2:02:21 PM11/28/25
to samir mulani, Kaiwan N Billimoria, Kernel Meetup Bangalore
Reply all
Reply to author
Forward
0 new messages