* [PATCH] USB: Remove BKL from remount() function in usbfs
@ 2010-03-31 14:09 Alessio Igor Bogani
2010-03-31 14:54 ` Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: Alessio Igor Bogani @ 2010-03-31 14:09 UTC (permalink / raw)
To: Greg Kroah-Hartman, Andrew Morton, Alexey Dobriyan, Al Viro
Cc: linux-usb, linux-kernel, Alessio Igor Bogani
The BKL was used into remount_fs pointed function for serialized access to
super_block from the others super_operations functions.
The function update_sb(), invoked by remount(), seems already well serialized
with &root->d_inode->i_mutex. Moreover don't seems there are others
super_operations functions in USB core for usbfs that should access to
super_block in a way which require BKL.
Signed-off-by: Alessio Igor Bogani <abogani@texware.it>
---
drivers/usb/core/inode.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c
index 97b40ce..54972d6 100644
--- a/drivers/usb/core/inode.c
+++ b/drivers/usb/core/inode.c
@@ -39,7 +39,6 @@
#include <linux/parser.h>
#include <linux/notifier.h>
#include <linux/seq_file.h>
-#include <linux/smp_lock.h>
#include <asm/byteorder.h>
#include "usb.h"
#include "hcd.h"
@@ -265,13 +264,9 @@ static int remount(struct super_block *sb, int *flags, char *data)
return -EINVAL;
}
- lock_kernel();
-
if (usbfs_mount && usbfs_mount->mnt_sb)
update_sb(usbfs_mount->mnt_sb);
- unlock_kernel();
-
return 0;
}
--
1.6.3.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] USB: Remove BKL from remount() function in usbfs
2010-03-31 14:09 [PATCH] USB: Remove BKL from remount() function in usbfs Alessio Igor Bogani
@ 2010-03-31 14:54 ` Arnd Bergmann
2010-03-31 17:21 ` Alessio Igor Bogani
0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2010-03-31 14:54 UTC (permalink / raw)
To: Alessio Igor Bogani
Cc: Greg Kroah-Hartman, Andrew Morton, Alexey Dobriyan, Al Viro,
linux-usb, linux-kernel, Jan Blunck
On Wednesday 31 March 2010, Alessio Igor Bogani wrote:
>
> The BKL was used into remount_fs pointed function for serialized access to
> super_block from the others super_operations functions.
>
> The function update_sb(), invoked by remount(), seems already well serialized
> with &root->d_inode->i_mutex. Moreover don't seems there are others
> super_operations functions in USB core for usbfs that should access to
> super_block in a way which require BKL.
There is a patch from Jan Blunck pending in the bkl-removal tree that pushes
down the BKL into usbfs_fill_super. Can you confirm that this BKL usage does
not interfere with the one you just removed, and that it can go the same way?
Arnd
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] USB: Remove BKL from remount() function in usbfs
2010-03-31 14:54 ` Arnd Bergmann
@ 2010-03-31 17:21 ` Alessio Igor Bogani
0 siblings, 0 replies; 3+ messages in thread
From: Alessio Igor Bogani @ 2010-03-31 17:21 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Greg Kroah-Hartman, Andrew Morton, Alexey Dobriyan, Al Viro,
linux-usb, linux-kernel, Jan Blunck
Mr Bergmann,
2010/3/31 Arnd Bergmann <arnd@arndb.de>:
[...]
>> The function update_sb(), invoked by remount(), seems already well serialized
>> with &root->d_inode->i_mutex. Moreover don't seems there are others
>> super_operations functions in USB core for usbfs that should access to
>> super_block in a way which require BKL.
>
> There is a patch from Jan Blunck pending in the bkl-removal tree that pushes
> down the BKL into usbfs_fill_super. Can you confirm that this BKL usage does
> not interfere with the one you just removed, and that it can go the same way?
I can confirm that this certainly interfere: So please ignore my patch.
I'll elaborate a new patch when Blunck's works is merged.
Thanks!
Ciao,
Alessio
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-31 17:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-31 14:09 [PATCH] USB: Remove BKL from remount() function in usbfs Alessio Igor Bogani
2010-03-31 14:54 ` Arnd Bergmann
2010-03-31 17:21 ` Alessio Igor Bogani
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.