aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorJes Sorensen <jes@sgi.com>2006-01-09 18:59:24 -0500
committerIngo Molnar <mingo@hera.kernel.org>2006-01-09 18:59:24 -0500
commit1b1dcc1b57a49136f118a0f16367256ff9994a69 (patch)
treeb0b36d4f41d28c9d6514fb309d33c1a084d6309b /drivers/md/md.c
parent794ee1baee1c26be40410233e6c20bceb2b03c08 (diff)
[PATCH] mutex subsystem, semaphore to mutex: VFS, ->i_sem
This patch converts the inode semaphore to a mutex. I have tested it on XFS and compiled as much as one can consider on an ia64. Anyway your luck with it might be different. Modified-by: Ingo Molnar <mingo@elte.hu> (finished the conversion) Signed-off-by: Jes Sorensen <jes@sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index e423a16ba3c9..0302723fa21f 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -3460,9 +3460,9 @@ static int update_size(mddev_t *mddev, unsigned long size)
3460 3460
3461 bdev = bdget_disk(mddev->gendisk, 0); 3461 bdev = bdget_disk(mddev->gendisk, 0);
3462 if (bdev) { 3462 if (bdev) {
3463 down(&bdev->bd_inode->i_sem); 3463 mutex_lock(&bdev->bd_inode->i_mutex);
3464 i_size_write(bdev->bd_inode, mddev->array_size << 10); 3464 i_size_write(bdev->bd_inode, mddev->array_size << 10);
3465 up(&bdev->bd_inode->i_sem); 3465 mutex_unlock(&bdev->bd_inode->i_mutex);
3466 bdput(bdev); 3466 bdput(bdev);
3467 } 3467 }
3468 } 3468 }
@@ -3486,9 +3486,9 @@ static int update_raid_disks(mddev_t *mddev, int raid_disks)
3486 3486
3487 bdev = bdget_disk(mddev->gendisk, 0); 3487 bdev = bdget_disk(mddev->gendisk, 0);
3488 if (bdev) { 3488 if (bdev) {
3489 down(&bdev->bd_inode->i_sem); 3489 mutex_lock(&bdev->bd_inode->i_mutex);
3490 i_size_write(bdev->bd_inode, mddev->array_size << 10); 3490 i_size_write(bdev->bd_inode, mddev->array_size << 10);
3491 up(&bdev->bd_inode->i_sem); 3491 mutex_unlock(&bdev->bd_inode->i_mutex);
3492 bdput(bdev); 3492 bdput(bdev);
3493 } 3493 }
3494 } 3494 }