All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [KJ] [PATCH] unified spinlock
@ 2005-01-20 15:35 Randy.Dunlap
  2005-01-20 15:44 ` Randy.Dunlap
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Randy.Dunlap @ 2005-01-20 15:35 UTC (permalink / raw)
  To: kernel-janitors

Matthew Wilcox wrote:
> On Thu, Jan 20, 2005 at 08:56:18PM +0530, Amit Gud wrote:
> 
>>Unify the spinlock initialization as far as possible.
> 
> 
> Why would you want to replace a statically initialised spinlock with
> one that's initialised at runtime?

I wondered that also, since I prefer the compile-time inits myself.
so I looked at the KJ TODO list
<http://janitor.kernelnewbies.org/TODO> and it says:

From: Jonathan Corbet

Unified spinlock initialization:
convert all explicit lock initializations to spin_lock_init() or
rwlock_init().  (Besides consistency this also helps automatic lock
validators and debugging code.)

http://lwn.net/Articles/109505/
http://linux.bkbits.net:8080/linux-2.6/cset@419a6f292wHnthuDzw7VfgECNLmvLg?nav=index.html|ChangeSet@-8w
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I don't find the consistency part compelling at all.
If the change helps some static source analyzers, however, that would
be a good thing, but not a strong one (IMO).

-- 
~Randy
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-01-22 18:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-20 15:35 [KJ] [PATCH] unified spinlock Randy.Dunlap
2005-01-20 15:44 ` Randy.Dunlap
2005-01-20 15:47 ` Matthew Wilcox
2005-01-20 16:50 ` Greg KH
2005-01-20 20:04 ` Matthew Wilcox
2005-01-20 20:09 ` Greg KH
2005-01-22 18:12 ` Domen Puncer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.