block: make blkdev_get/put() handle exclusive access
[linux-2.6.git] / fs / xfs / linux-2.6 / xfs_super.c
index 9f3a78f..a1a6e5c 100644 (file)
@@ -623,7 +623,7 @@ xfs_blkdev_put(
        struct block_device     *bdev)
 {
        if (bdev)
-               close_bdev_exclusive(bdev, FMODE_READ|FMODE_WRITE);
+               blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL);
 }
 
 /*