public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs/sysfs/file.c: use DEFINE_SPINLOCK for sysfs_open_dirent_lock definition
@ 2007-12-10 19:03 Matthias Kaehlcke
  2007-12-10 19:19 ` Jiri Slaby
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Kaehlcke @ 2007-12-10 19:03 UTC (permalink / raw)
  To: viro; +Cc: linux-kernel, Andrew Morton

fs/sysfs/file.c: use DEFINE_SPINLOCK for definition of
sysfs_open_dirent_lock instead of assigning SPIN_LOCK_UNLOCKED

Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>

--

diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
index 4045bdc..09a0611 100644
--- a/fs/sysfs/file.c
+++ b/fs/sysfs/file.c
@@ -66,7 +66,7 @@ static struct sysfs_ops subsys_sysfs_ops = {
  * sysfs_dirent->s_attr.open points to sysfs_open_dirent.  s_attr.open
  * is protected by sysfs_open_dirent_lock.
  */
-static spinlock_t sysfs_open_dirent_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(sysfs_open_dirent_lock);
 
 struct sysfs_open_dirent {
 	atomic_t		refcnt;
 
-- 
Matthias Kaehlcke
Linux System Developer
Barcelona

     La libertad es como la mañana. Hay quienes esperan dormidos a que
   llegue, pero hay quienes desvelan y caminan la noche para alcanzarla
                        (Subcomandante Marcos)
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4                  `-

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

* Re: [PATCH] fs/sysfs/file.c: use DEFINE_SPINLOCK for sysfs_open_dirent_lock definition
  2007-12-10 19:03 [PATCH] fs/sysfs/file.c: use DEFINE_SPINLOCK for sysfs_open_dirent_lock definition Matthias Kaehlcke
@ 2007-12-10 19:19 ` Jiri Slaby
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Slaby @ 2007-12-10 19:19 UTC (permalink / raw)
  To: Matthias Kaehlcke, viro, linux-kernel, Andrew Morton

On 12/10/2007 08:03 PM, Matthias Kaehlcke wrote:
> fs/sysfs/file.c: use DEFINE_SPINLOCK for definition of
> sysfs_open_dirent_lock instead of assigning SPIN_LOCK_UNLOCKED

Already done:
http://lkml.org/lkml/2007/11/9/222

regards,
--js

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

end of thread, other threads:[~2007-12-10 19:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-10 19:03 [PATCH] fs/sysfs/file.c: use DEFINE_SPINLOCK for sysfs_open_dirent_lock definition Matthias Kaehlcke
2007-12-10 19:19 ` Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox