lkml.org 
[lkml]   [2009]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] [PATCH 2/2] ACPI: introduce ACPI ALS device driver
>> Are there any plausible race conditions associated with doing the allocation this way?
>
> well, theoretically, yes.
> simultaneous add calls may happen in hotplug case, but I don't think an
> ACPI ALS device supports hotplug.
That would make that point irrelevant!

Thinking further on this. What happens on a box that for some reason repeatedly inserts and
removes this module?

This is the sort of problem idr's are meant to overcome. They will cost you a bit
in terms of complexity though.



\
 
 \ /
  Last update: 2009-09-23 10:13    [W:0.059 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site