Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 81094 Details for
Bug 124610
sys-cluster/gfs-kernel-1.01.00 does not build against ~2.6.16 kernels
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cluster-mutex.patch
cluster-mutex.patch (text/plain), 1.71 KB, created by
Christopher G. Stach II
on 2006-03-02 01:07:54 UTC
(
hide
)
Description:
cluster-mutex.patch
Filename:
MIME Type:
Creator:
Christopher G. Stach II
Created:
2006-03-02 01:07:54 UTC
Size:
1.71 KB
patch
obsolete
>diff -ur cluster-1.01.00.orig/gfs-kernel/src/gfs/ops_file.c cluster-1.01.00/gfs-kernel/src/gfs/ops_file.c >--- cluster-1.01.00.orig/gfs-kernel/src/gfs/ops_file.c 2005-04-26 13:33:11.000000000 -0500 >+++ cluster-1.01.00/gfs-kernel/src/gfs/ops_file.c 2006-03-02 01:38:26.000000000 -0600 >@@ -931,12 +931,12 @@ > if (!access_ok(VERIFY_READ, buf, size)) > return -EFAULT; > >- down(&inode->i_sem); >+ mutex_lock(&inode->i_mutex); > if (file->f_flags & O_DIRECT) > count = walk_vm(file, (char *)buf, size, offset, do_write_direct); > else > count = walk_vm(file, (char *)buf, size, offset, do_write_buf); >- up(&inode->i_sem); >+ mutex_unlock(&inode->i_mutex); > > return count; > } >diff -ur cluster-1.01.00.orig/gfs-kernel/src/gfs/ops_fstype.c cluster-1.01.00/gfs-kernel/src/gfs/ops_fstype.c >--- cluster-1.01.00.orig/gfs-kernel/src/gfs/ops_fstype.c 2005-04-29 10:42:38.000000000 -0500 >+++ cluster-1.01.00/gfs-kernel/src/gfs/ops_fstype.c 2006-03-02 02:44:05.000000000 -0600 >@@ -715,9 +715,8 @@ > > sb->s_flags = flags; > strlcpy(sb->s_id, bdevname(real, buf), sizeof(sb->s_id)); >- sb->s_old_blocksize = block_size(real); >- sb_set_blocksize(sb, sb->s_old_blocksize); >- set_blocksize(real, sb->s_old_blocksize); >+ sb_set_blocksize(sb, block_size(real)); >+ sync_blockdev(real); > error = fill_super(sb, data, (flags & MS_VERBOSE) ? 1 : 0); > if (error) { > up_write(&sb->s_umount); >@@ -748,11 +747,10 @@ > { > struct block_device *diaper = sb->s_bdev; > struct block_device *real = gfs_diaper_2real(diaper); >- unsigned long bsize = sb->s_old_blocksize; > > generic_shutdown_super(sb); >- set_blocksize(diaper, bsize); >- set_blocksize(real, bsize); >+ sync_blockdev(diaper); >+ sync_blockdev(real); > gfs_diaper_put(diaper); > close_bdev_excl(real); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 124610
: 81094