Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 476aed38 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 52e112b3
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@ static void freetgt(struct aoedev *d, struct aoetgt *t);
static void skbpoolfree(struct aoedev *d);
static void skbpoolfree(struct aoedev *d);


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


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