]> xenbits.xensource.com Git - people/ssmith/nc2-2.6.27.bak/.git/commitdiff
prefer spin_lock_init to SPIN_LOCK_UNLOCKED.
authorSteven Smith <ssmith@weybridge.uk.xensource.com>
Thu, 28 May 2009 10:54:19 +0000 (11:54 +0100)
committerSteven Smith <ssmith@weybridge.uk.xensource.com>
Thu, 28 May 2009 10:54:19 +0000 (11:54 +0100)
The former is prefered and keep lockdep happy.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
drivers/xen/blktap2/device.c

index d8d2ac6063ae0e6bbf312842a2044a309bd00cdc..7c5974c369b4582b94c84031c765dda82d63f75b 100644 (file)
@@ -1071,7 +1071,7 @@ blktap_device_create(struct blktap *tap)
        gd->fops = &blktap_device_file_operations;
        gd->private_data = dev;
 
-       dev->lock = SPIN_LOCK_UNLOCKED;
+       spin_lock_init(&dev->lock);
        rq = blk_init_queue(blktap_device_do_request, &dev->lock);
        if (!rq)
                goto error;