Re: [PATCH -v5][RFC]: mutex: implement adaptive spinning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 7 Jan 2009, Linus Torvalds wrote:
> On Wed, 7 Jan 2009, Dave Kleikamp wrote:
> > 
> > Do you need to even do that if CONFIG_DEBUG_PAGEALLOC is unset?
> 
> No.
> 
> > Something like:
> > 
> > #ifdef CONFIG_DEBUG_PAGEALLOC
> >                 /*
> >                  * Need to access the cpu field knowing that
> >                  * DEBUG_PAGEALLOC could have unmapped it if
> >                  * the mutex owner just released it and exited.
> >                  */
> >                 if (probe_kernel_address(&thread->cpu, cpu))
> >                         break;
> > #else
> > 		cpu = thread->cpu;
> > #endif
> 
> yes. That would work fine.

What about memory hotplug as Ingo mentioned?

Should that be:

#if defined(CONFIG_DEBUG_PAGEALLOC) || defined(CONFIG_MEMORY_HOTPLUG)

??

-- Steve

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux