lkml.org 
[lkml]   [2014]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 01/51] CPU hotplug: Provide lockless versions of callback registration functions
On Mon, Feb 10, 2014 at 06:26:20PM -0700, Toshi Kani wrote:
>
> get/put_online_cpus() is a reader-lock and concurrent executions are
> allowed among the readers. They won't be serialized until a cpu
> online/offline operation begins. By replacing this lock with
> cpu_maps_update_begin/done(), we now serialize all readers.

We're not serializing all the readers, just the ones which want to
register/unregister their cpu-hotplug notifiers. This is a one-off
event which typically happens during a module_init() or a
module_exit() time. So this patchset does not replace
get/put_online_cpus() if that is the concern!

--
Thanks and Regards
gautham.





\
 
 \ /
  Last update: 2014-02-13 12:41    [W:0.201 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site