Skip to contentSkip to conversation

buffer_head slab memory leak, Linux bug?

DISCUSSION Andi Kleen 1 participant 1 message Sep 2, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#1 lore raw
Quoted 1 line · Elisheva Alexander

it happens quite often (at random), so it's not too hard to recreate it.

It is linux telling you that your code is crappy ;)

It's easy to fix. You just need to fix the lock to not turn off interrupts for such a long time. If you're writing non driver network code you likely don't need an _irqsave lock anyways, as a _bh lock should suffice. Better would be to use a different lock structure however for such long locks that do not depend on blocking bottom halves or interrupts (e.g. see how the TCP socket lock works as an example)

-Andi