blockdev: turn a rw semaphore into a percpu rw semaphore
[deliverable/linux.git] / include / linux / fs.h
index e60bbd0225d5bc03365b6c0437e86292c2b133a2..24e1229cdfe004926fc481941fe18a1cad9805c0 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/ioctl.h>
 #include <linux/blk_types.h>
 #include <linux/types.h>
+#include <linux/percpu-rwsem.h>
 
 /*
  * It's silly to have NR_OPEN bigger than NR_FILE, but you can change
@@ -726,7 +727,7 @@ struct block_device {
        /* Mutex for freeze */
        struct mutex            bd_fsfreeze_mutex;
        /* A semaphore that prevents I/O while block size is being changed */
-       struct rw_semaphore     bd_block_size_semaphore;
+       struct percpu_rw_semaphore      bd_block_size_semaphore;
 };
 
 /*
This page took 0.028384 seconds and 5 git commands to generate.