diff options
author | Arnd Bergmann <arnd@arndb.de> | 2010-05-31 16:38:40 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2010-09-26 10:25:51 -0400 |
commit | cfdb00a77ea7d5fb922fd985e5dfbcb36873411b (patch) | |
tree | d5b70c7edc95cad7271342214d3e4338f37e02c2 /drivers/s390/block | |
parent | 54066a57c584ee8ce767053116fc4943ed1168b5 (diff) |
s390/block: kill the big kernel lock
The dasd and dcssblk drivers gained the big
kernel lock in the recent pushdown from the
block layer, but they don't really need it,
so remove the calls without a replacement.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: linux-s390@vger.kernel.org
Diffstat (limited to 'drivers/s390/block')
-rw-r--r-- | drivers/s390/block/dasd.c | 6 | ||||
-rw-r--r-- | drivers/s390/block/dasd_ioctl.c | 17 | ||||
-rw-r--r-- | drivers/s390/block/dcssblk.c | 5 |
3 files changed, 2 insertions, 26 deletions
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c index 8373ca0de8e0..38e6fa9a2012 100644 --- a/drivers/s390/block/dasd.c +++ b/drivers/s390/block/dasd.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <linux/hdreg.h> | 21 | #include <linux/hdreg.h> |
22 | #include <linux/async.h> | 22 | #include <linux/async.h> |
23 | #include <linux/mutex.h> | 23 | #include <linux/mutex.h> |
24 | #include <linux/smp_lock.h> | ||
25 | 24 | ||
26 | #include <asm/ccwdev.h> | 25 | #include <asm/ccwdev.h> |
27 | #include <asm/ebcdic.h> | 26 | #include <asm/ebcdic.h> |
@@ -2236,7 +2235,6 @@ static int dasd_open(struct block_device *bdev, fmode_t mode) | |||
2236 | if (!block) | 2235 | if (!block) |
2237 | return -ENODEV; | 2236 | return -ENODEV; |
2238 | 2237 | ||
2239 | lock_kernel(); | ||
2240 | base = block->base; | 2238 | base = block->base; |
2241 | atomic_inc(&block->open_count); | 2239 | atomic_inc(&block->open_count); |
2242 | if (test_bit(DASD_FLAG_OFFLINE, &base->flags)) { | 2240 | if (test_bit(DASD_FLAG_OFFLINE, &base->flags)) { |
@@ -2271,14 +2269,12 @@ static int dasd_open(struct block_device *bdev, fmode_t mode) | |||
2271 | goto out; | 2269 | goto out; |
2272 | } | 2270 | } |
2273 | 2271 | ||
2274 | unlock_kernel(); | ||
2275 | return 0; | 2272 | return 0; |
2276 | 2273 | ||
2277 | out: | 2274 | out: |
2278 | module_put(base->discipline->owner); | 2275 | module_put(base->discipline->owner); |
2279 | unlock: | 2276 | unlock: |
2280 | atomic_dec(&block->open_count); | 2277 | atomic_dec(&block->open_count); |
2281 | unlock_kernel(); | ||
2282 | return rc; | 2278 | return rc; |
2283 | } | 2279 | } |
2284 | 2280 | ||
@@ -2286,10 +2282,8 @@ static int dasd_release(struct gendisk *disk, fmode_t mode) | |||
2286 | { | 2282 | { |
2287 | struct dasd_block *block = disk->private_data; | 2283 | struct dasd_block *block = disk->private_data; |
2288 | 2284 | ||
2289 | lock_kernel(); | ||
2290 | atomic_dec(&block->open_count); | 2285 | atomic_dec(&block->open_count); |
2291 | module_put(block->base->discipline->owner); | 2286 | module_put(block->base->discipline->owner); |
2292 | unlock_kernel(); | ||
2293 | return 0; | 2287 | return 0; |
2294 | } | 2288 | } |
2295 | 2289 | ||
diff --git a/drivers/s390/block/dasd_ioctl.c b/drivers/s390/block/dasd_ioctl.c index 1557214944f7..26075e95b1ba 100644 --- a/drivers/s390/block/dasd_ioctl.c +++ b/drivers/s390/block/dasd_ioctl.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <linux/major.h> | 16 | #include <linux/major.h> |
17 | #include <linux/fs.h> | 17 | #include <linux/fs.h> |
18 | #include <linux/blkpg.h> | 18 | #include <linux/blkpg.h> |
19 | #include <linux/smp_lock.h> | ||
20 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
21 | #include <asm/compat.h> | 20 | #include <asm/compat.h> |
22 | #include <asm/ccwdev.h> | 21 | #include <asm/ccwdev.h> |
@@ -370,9 +369,8 @@ static int dasd_ioctl_readall_cmb(struct dasd_block *block, unsigned int cmd, | |||
370 | return ret; | 369 | return ret; |
371 | } | 370 | } |
372 | 371 | ||
373 | static int | 372 | int dasd_ioctl(struct block_device *bdev, fmode_t mode, |
374 | dasd_do_ioctl(struct block_device *bdev, fmode_t mode, | 373 | unsigned int cmd, unsigned long arg) |
375 | unsigned int cmd, unsigned long arg) | ||
376 | { | 374 | { |
377 | struct dasd_block *block = bdev->bd_disk->private_data; | 375 | struct dasd_block *block = bdev->bd_disk->private_data; |
378 | void __user *argp; | 376 | void __user *argp; |
@@ -430,14 +428,3 @@ dasd_do_ioctl(struct block_device *bdev, fmode_t mode, | |||
430 | return -EINVAL; | 428 | return -EINVAL; |
431 | } | 429 | } |
432 | } | 430 | } |
433 | |||
434 | int dasd_ioctl(struct block_device *bdev, fmode_t mode, | ||
435 | unsigned int cmd, unsigned long arg) | ||
436 | { | ||
437 | int rc; | ||
438 | |||
439 | lock_kernel(); | ||
440 | rc = dasd_do_ioctl(bdev, mode, cmd, arg); | ||
441 | unlock_kernel(); | ||
442 | return rc; | ||
443 | } | ||
diff --git a/drivers/s390/block/dcssblk.c b/drivers/s390/block/dcssblk.c index 2bd72aa34c59..9b43ae94beba 100644 --- a/drivers/s390/block/dcssblk.c +++ b/drivers/s390/block/dcssblk.c | |||
@@ -14,7 +14,6 @@ | |||
14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
15 | #include <linux/slab.h> | 15 | #include <linux/slab.h> |
16 | #include <linux/blkdev.h> | 16 | #include <linux/blkdev.h> |
17 | #include <linux/smp_lock.h> | ||
18 | #include <linux/completion.h> | 17 | #include <linux/completion.h> |
19 | #include <linux/interrupt.h> | 18 | #include <linux/interrupt.h> |
20 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
@@ -776,7 +775,6 @@ dcssblk_open(struct block_device *bdev, fmode_t mode) | |||
776 | struct dcssblk_dev_info *dev_info; | 775 | struct dcssblk_dev_info *dev_info; |
777 | int rc; | 776 | int rc; |
778 | 777 | ||
779 | lock_kernel(); | ||
780 | dev_info = bdev->bd_disk->private_data; | 778 | dev_info = bdev->bd_disk->private_data; |
781 | if (NULL == dev_info) { | 779 | if (NULL == dev_info) { |
782 | rc = -ENODEV; | 780 | rc = -ENODEV; |
@@ -786,7 +784,6 @@ dcssblk_open(struct block_device *bdev, fmode_t mode) | |||
786 | bdev->bd_block_size = 4096; | 784 | bdev->bd_block_size = 4096; |
787 | rc = 0; | 785 | rc = 0; |
788 | out: | 786 | out: |
789 | unlock_kernel(); | ||
790 | return rc; | 787 | return rc; |
791 | } | 788 | } |
792 | 789 | ||
@@ -797,7 +794,6 @@ dcssblk_release(struct gendisk *disk, fmode_t mode) | |||
797 | struct segment_info *entry; | 794 | struct segment_info *entry; |
798 | int rc; | 795 | int rc; |
799 | 796 | ||
800 | lock_kernel(); | ||
801 | if (!dev_info) { | 797 | if (!dev_info) { |
802 | rc = -ENODEV; | 798 | rc = -ENODEV; |
803 | goto out; | 799 | goto out; |
@@ -815,7 +811,6 @@ dcssblk_release(struct gendisk *disk, fmode_t mode) | |||
815 | up_write(&dcssblk_devices_sem); | 811 | up_write(&dcssblk_devices_sem); |
816 | rc = 0; | 812 | rc = 0; |
817 | out: | 813 | out: |
818 | unlock_kernel(); | ||
819 | return rc; | 814 | return rc; |
820 | } | 815 | } |
821 | 816 | ||