All of lore.kernel.org
 help / color / mirror / Atom feed
* BKL in tiglusb release function
@ 2002-04-05  0:38 Dave Hansen
       [not found] ` <3CAD74DA.58561BF7@free.fr>
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Hansen @ 2002-04-05  0:38 UTC (permalink / raw)
  To: Romain Lievin, Julien BLACHE; +Cc: linux-kernel, linux-usb-devel

[-- Attachment #1: Type: text/plain, Size: 298 bytes --]

Is there a reason for the BKL to be used in tiglusb_release()?  Are you 
worried about a race between open and release, or were you just 
following examples from other code?

I'm sure we can remove it safely.  We might need another lock, but it 
won't be much.

-- 
Dave Hansen
haveblue@us.ibm.com

[-- Attachment #2: tiglusb-bkl_remove-2.5.8-pre1.patch --]
[-- Type: text/plain, Size: 389 bytes --]

--- linux-2.5.8-pre1-clean/drivers/usb/tiglusb.c	Thu Apr  4 08:58:26 2002
+++ linux/drivers/usb/tiglusb.c	Thu Apr  4 16:29:31 2002
@@ -128,7 +128,6 @@
 {
 	ptiglusb_t s = (ptiglusb_t) file->private_data;
 
-	lock_kernel ();
 	down (&s->mutex);
 	s->state = _stopped;
 	up (&s->mutex);
@@ -139,7 +138,6 @@
 		wake_up (&s->remove_ok);
 
 	s->opened = 0;
-	unlock_kernel ();
 
 	return 0;
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-05 16:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-05  0:38 BKL in tiglusb release function Dave Hansen
     [not found] ` <3CAD74DA.58561BF7@free.fr>
2002-04-05 16:58   ` Dave Hansen

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.