public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] USB speedtouch: don't race the tasklets
@ 2003-02-28  9:12 Duncan Sands
  2003-02-28 21:32 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Duncan Sands @ 2003-02-28  9:12 UTC (permalink / raw)
  To: linux-usb-devel; +Cc: Greg KH, linux-kernel

 speedtouch.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/drivers/usb/misc/speedtouch.c b/drivers/usb/misc/speedtouch.c
--- a/drivers/usb/misc/speedtouch.c	Fri Feb 28 10:08:32 2003
+++ b/drivers/usb/misc/speedtouch.c	Fri Feb 28 10:08:32 2003
@@ -326,10 +326,10 @@
 
 	dbg ("udsl_complete_receive entered (urb 0x%p, status %d)", urb, urb->status);
 
-	tasklet_schedule (&instance->receive_tasklet);
 	/* may not be in_interrupt() */
 	spin_lock_irqsave (&instance->completed_receivers_lock, flags);
 	list_add_tail (&rcv->list, &instance->completed_receivers);
+	tasklet_schedule (&instance->receive_tasklet);
 	spin_unlock_irqrestore (&instance->completed_receivers_lock, flags);
 }
 
@@ -489,11 +489,11 @@
 
 	dbg ("udsl_complete_send entered (urb 0x%p, status %d)", urb, urb->status);
 
-	tasklet_schedule (&instance->send_tasklet);
 	/* may not be in_interrupt() */
 	spin_lock_irqsave (&instance->send_lock, flags);
 	list_add (&snd->list, &instance->spare_senders);
 	list_add (&snd->buffer->list, &instance->spare_buffers);
+	tasklet_schedule (&instance->send_tasklet);
 	spin_unlock_irqrestore (&instance->send_lock, flags);
 }
 


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

* Re: [PATCH] USB speedtouch: don't race the tasklets
       [not found] <mailman.1046424703.308.linux-kernel2news@redhat.com>
@ 2003-02-28 20:55 ` Pete Zaitcev
  2003-03-01 20:14   ` Duncan Sands
  0 siblings, 1 reply; 4+ messages in thread
From: Pete Zaitcev @ 2003-02-28 20:55 UTC (permalink / raw)
  To: Duncan Sands; +Cc: linux-kernel

>  speedtouch.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

My news gateway ate all interesting headers, so I cannot tell
if you cc-ed it properly. The common practice is to send
patches to: greg@kroah.com and cc: linux-usb-devel@lists.sourceforge.net.
Linus probably won't pick anything USB directly off l-k.

-- Pete

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

* Re: [PATCH] USB speedtouch: don't race the tasklets
  2003-02-28  9:12 [PATCH] USB speedtouch: don't race the tasklets Duncan Sands
@ 2003-02-28 21:32 ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2003-02-28 21:32 UTC (permalink / raw)
  To: Duncan Sands; +Cc: linux-usb-devel, linux-kernel

On Fri, Feb 28, 2003 at 10:12:52AM +0100, Duncan Sands wrote:
>  speedtouch.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

greg k-h

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

* Re: [PATCH] USB speedtouch: don't race the tasklets
  2003-02-28 20:55 ` Pete Zaitcev
@ 2003-03-01 20:14   ` Duncan Sands
  0 siblings, 0 replies; 4+ messages in thread
From: Duncan Sands @ 2003-03-01 20:14 UTC (permalink / raw)
  To: Pete Zaitcev; +Cc: linux-kernel

On Friday 28 February 2003 21:55, Pete Zaitcev wrote:
> >  speedtouch.c |    4 ++--
> >  1 files changed, 2 insertions(+), 2 deletions(-)
>
> My news gateway ate all interesting headers, so I cannot tell
> if you cc-ed it properly. The common practice is to send
> patches to: greg@kroah.com and cc: linux-usb-devel@lists.sourceforge.net.
> Linus probably won't pick anything USB directly off l-k.

Hi Pete - that's what I did.  I cc-ed the lkml in the hope of having the
patches flamed (= learning for me) by some of the fire-breathers there.

All the best,

Duncan.

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

end of thread, other threads:[~2003-03-01 20:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-28  9:12 [PATCH] USB speedtouch: don't race the tasklets Duncan Sands
2003-02-28 21:32 ` Greg KH
     [not found] <mailman.1046424703.308.linux-kernel2news@redhat.com>
2003-02-28 20:55 ` Pete Zaitcev
2003-03-01 20:14   ` Duncan Sands

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox