Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 82851 Details for
Bug 119538
submount fails with > 2.6.16-rc1 (patch attached)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix 2.6.16
submount-2.6.16-fix.diff (text/plain), 1.09 KB, created by
Patrizio Bassi
on 2006-03-22 01:55:14 UTC
(
hide
)
Description:
patch to fix 2.6.16
Filename:
MIME Type:
Creator:
Patrizio Bassi
Created:
2006-03-22 01:55:14 UTC
Size:
1.09 KB
patch
obsolete
>--- a/subfs.c 2006-03-22 10:06:33.000000000 +0100 >+++ b/subfs.c 2006-03-22 10:08:11.000000000 +0100 >@@ -25,6 +25,7 @@ > #include <asm/signal.h> > #include <linux/signal.h> > #include <linux/sched.h> >+#include <linux/version.h> > > #include "subfs.h" > >@@ -221,14 +222,30 @@ > struct vfsmount *child; > > /* This is ugly, but prevents a lockup during mount. */ >+ >+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) >+ mutex_unlock(&dir->i_mutex); >+#else > up(&dir->i_sem); >+#endif >+ > if (down_interruptible(&sfs_mnt->sem)) { >- down(&dir->i_sem);/*put the dir sem back down if interrupted*/ >+ >+# if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) >+ mutex_lock(&dir->i_mutex); /*put the dir sem back down if interrupted*/ >+#else >+ down(&dir->i_sem); /*put the dir sem back down if interrupted*/ >+#endif > return ERR_PTR(-ERESTARTSYS); > } > child = get_child_mount(sfs_mnt); > up(&sfs_mnt->sem); >+ >+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15) >+ mutex_lock(&dir->i_mutex); /*put the dir sem back down if interrupted*/ >+#else > down(&dir->i_sem); >+#endif > if (IS_ERR(child)) > return (void *) child; > subfs_send_signal();
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 119538
:
77525
| 82851