login
Header Space

 
 

2.6.23-rc7-mm1: r/o mounts joke with lockdep

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <akpm@...>
Cc: <linux-kernel@...>, <haveblue@...>
Date: Monday, September 24, 2007 - 5:51 am

static void lock_and_coalesce_cpu_mnt_writer_counts(void)
{
	int cpu;
	struct mnt_writer *cpu_writer;

	for_each_possible_cpu(cpu) {
		cpu_writer = &per_cpu(mnt_writers, cpu);
		spin_lock_nested(&cpu_writer->lock, 42);
		                                   ^^^^

What the heck is going on? Given that MAX_LOCKDEP_SUBCLASSES is only 8,
this reliably turns off lockdep at boot.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.23-rc7-mm1: r/o mounts joke with lockdep, Alexey Dobriyan, (Mon Sep 24, 5:51 am)
Re: 2.6.23-rc7-mm1: r/o mounts joke with lockdep, Andrew Morton, (Mon Sep 24, 12:26 pm)
Re: 2.6.23-rc7-mm1: r/o mounts joke with lockdep, Dave Hansen, (Mon Sep 24, 12:33 pm)
speck-geostationary