git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] mutex subsystem, semaphore to mutex: VFS, ->i_sem
[safe/jmp/linux-2.6]
/
drivers
/
usb
/
gadget
/
inode.c
diff --git
a/drivers/usb/gadget/inode.c
b/drivers/usb/gadget/inode.c
index
5c40980
..
c6c279d
100644
(file)
--- a/
drivers/usb/gadget/inode.c
+++ b/
drivers/usb/gadget/inode.c
@@
-1562,10
+1562,10
@@
restart:
spin_unlock_irq (&dev->lock);
/* break link to dcache */
-
down (&parent->i_sem
);
+
mutex_lock (&parent->i_mutex
);
d_delete (dentry);
dput (dentry);
-
up (&parent->i_sem
);
+
mutex_unlock (&parent->i_mutex
);
/* fds may still be open */
goto restart;