KernelTrap: Making The BKL Preemptable | Linux Today

KernelTrap: Making The BKL Preemptable

Written By
Web Webster
Web Webster
Sep 17, 2004

“Continuing his effort to minimize latency in the 2.6 kernel,
Ingo Molnar offered a patch to ‘get rid of Linux’s Big Kernel Lock
as we know it today.’ He explains that he does this by replacing
the BKL spinlock and depth counter with a special recursive
semaphore. Ingo goes on to explain three main advantages of this
approach; code utilizing the BKL is now fully preemptable, no time
is wasted spinning on the BKL if there’s BKL contention, and it is
believed to be fully backwards compatible.

“Linus Torvalds was not impressed saying, ‘I really think this
is wrong.’ He went to explain that he wasn’t against the concept,
but had some issues with the implemenation, and would be quite
interested in seeing performance numbers…”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.