X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fafs%2Fvlocation.c;h=eced20618eccf2bfc23a1bc7d9b3abefc2ded9a1;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=5d650422e7fd57897257e1456efdcddf9f8e6ba3;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/fs/afs/vlocation.c b/fs/afs/vlocation.c index 5d650422e..eced20618 100644 --- a/fs/afs/vlocation.c +++ b/fs/afs/vlocation.c @@ -57,7 +57,7 @@ static const struct afs_async_op_ops afs_vlocation_update_op_ops = { static LIST_HEAD(afs_vlocation_update_pendq); /* queue of VLs awaiting update */ static struct afs_vlocation *afs_vlocation_update; /* VL currently being updated */ -static spinlock_t afs_vlocation_update_lock = SPIN_LOCK_UNLOCKED; /* lock guarding update queue */ +static DEFINE_SPINLOCK(afs_vlocation_update_lock); /* lock guarding update queue */ #ifdef AFS_CACHING_SUPPORT static cachefs_match_val_t afs_vlocation_cache_match(void *target,