lkml.org 
[lkml]   [2012]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] char random: fix boot id uniqueness race (v2)
From
Date
Le mercredi 15 février 2012 à 08:35 -0500, Mathieu Desnoyers a écrit :

> That would make sense, as long as we're OK about turning a read-mostly
> operation into a fully serialized operation that requires to exchange
> the lock between processor cache-lines. But as you point out, it should
> be fairly unfrequently used.
>
> Any particular reason to use a spin lock rather than a mutex ? I did put
> a mutex in my implementation assuming that it would be a little more
> RT-friendly.

generate_random_uuid(uuid) is very fast and doesnt sleep.



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2012-02-15 15:11    [W:0.043 / U:0.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site