aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe/aoedev.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-02-08 07:20:10 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-08 12:22:32 -0500
commit476aed3870b26735c4fcfdaa95420fa9e1de5119 (patch)
tree1cdfb2baacf32c97a727f819e64ae8c81fca5817 /drivers/block/aoe/aoedev.c
parent52e112b3ab6b2b35a144565c8ea3bdda1e2845f2 (diff)
aoe: statically initialise devlist_lock
I guess aoedev_init() can go away now. Cc: Greg KH <greg@kroah.com> Cc: "Ed L. Cashin" <ecashin@coraid.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block/aoe/aoedev.c')
-rw-r--r--drivers/block/aoe/aoedev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/block/aoe/aoedev.c b/drivers/block/aoe/aoedev.c
index d146c4eebd34..f9a1cd9edb77 100644
--- a/drivers/block/aoe/aoedev.c
+++ b/drivers/block/aoe/aoedev.c
@@ -16,7 +16,7 @@ static void freetgt(struct aoedev *d, struct aoetgt *t);
16static void skbpoolfree(struct aoedev *d); 16static void skbpoolfree(struct aoedev *d);
17 17
18static struct aoedev *devlist; 18static struct aoedev *devlist;
19static spinlock_t devlist_lock; 19static DEFINE_SPINLOCK(devlist_lock);
20 20
21int 21int
22aoedev_isbusy(struct aoedev *d) 22aoedev_isbusy(struct aoedev *d)
@@ -291,7 +291,5 @@ aoedev_exit(void)
291int __init 291int __init
292aoedev_init(void) 292aoedev_init(void)
293{ 293{
294 spin_lock_init(&devlist_lock);
295 return 0; 294 return 0;
296} 295}
297