]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: libusual: locking cleanup
authorDaniel Walker <dwalker@mvista.com>
Tue, 5 Feb 2008 07:57:42 +0000 (23:57 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Apr 2008 04:16:33 +0000 (21:16 -0700)
commit75c43b6ec6eb114e875e43fb151987c1a558e4f4
treeddaf1f977cb79e7668c7f759acf8e786241d1f5d
parentd99388aa0a504f69532db353a976ec133361bb4f
USB: libusual: locking cleanup

I converted the usu_init_notify semaphore to normal mutex usage, and it
should still prevent the request_module before the init routine is
complete.  Before it acted more like a complete, now the mutex protects two
distinct section from running at the same time.

Signed-off-by: Daniel Walker <dwalker@mvista.com>
Cc: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/libusual.c