Skip to content

Commit

Permalink
aoe: statically initialise devlist_lock
Browse files Browse the repository at this point in the history
I guess aoedev_init() can go away now.

Cc: Greg KH <[email protected]>
Cc: "Ed L. Cashin" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
akpm00 authored and Linus Torvalds committed Feb 8, 2008
1 parent 52e112b commit 476aed3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/block/aoe/aoedev.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static void freetgt(struct aoedev *d, struct aoetgt *t);
static void skbpoolfree(struct aoedev *d);

static struct aoedev *devlist;
static spinlock_t devlist_lock;
static DEFINE_SPINLOCK(devlist_lock);

int
aoedev_isbusy(struct aoedev *d)
Expand Down Expand Up @@ -291,7 +291,5 @@ aoedev_exit(void)
int __init
aoedev_init(void)
{
spin_lock_init(&devlist_lock);
return 0;
}

0 comments on commit 476aed3

Please sign in to comment.