Skip to contentSkip to conversation

RCU locking issues in jbd2_dev_to_name

DISCUSSION Theodore Tso 2 participants 2 messages Jul 27, 2011 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]

#1 lore raw
Quoted 7 lines · NeilBrown

Hi Ted and all,

I've been exploring RCU usage in the kernel looking for strange things, and jbd2_dev_to_name looks particularly strange. The following patch explains and addresses the issues that I found. Comments welcome.

Yeah its broken. But I have patches pending for the merge window that solve it by nuking the function altogether; the problem is calling a function from TP_PRINTK causes perf to die on the spot, terminating its tracing. :-(

- Ted

#2 lore raw
Quoted 7 lines · On Wed, 27 Jul 2011 07:28:27 -0400 Theodore Tso <[email protected]> wrote:
Quoted 4 lines · NeilBrown

Hi Ted and all,

Quoted 8 lines
Quoted 3 lines

I've been exploring RCU usage in the kernel looking for strange things, and jbd2_dev_to_name looks particularly strange. The following patch explains and addresses the issues that I found. Comments welcome.

Yeah its broken. But I have patches pending for the merge window that solve it by nuking the function altogether; the problem is calling a function from TP_PRINTK causes perf to die on the spot, terminating its tracing. :-(

Sounds painful...

If it is about to go, that is good enough for me.

Thanks,
NeilBrown