* [patch]startup race in hso driver
@ 2008-12-18 13:57 Oliver Neukum
[not found] ` <200812181457.36340.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 9+ messages in thread
From: Oliver Neukum @ 2008-12-18 13:57 UTC (permalink / raw)
To: ajb-5+cxppFmGx6/3pe1ocb+s/XRex20P6io, Greg Kroah-Hartman,
netdev-u79uwXL29TY76Z2rM5mHXA, jgarzik-e+AXbWqSrlAAvxtiuMwx3w,
USB list
The flag marking a device running must be set before the URBs for
recption are submitted or they may complete too early and fail to resubmit.
Signed-off-by: Oliver Neukum <oneukum-l3A5Bk7waGM@public.gmane.org>
Regards
Oliver
---
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
index 8e90891..cc75c8b 100644
--- a/drivers/net/usb/hso.c
+++ b/drivers/net/usb/hso.c
@@ -658,10 +658,9 @@ static int hso_net_open(struct net_device *net)
odev->rx_buf_missing = sizeof(struct iphdr);
spin_unlock_irqrestore(&odev->net_lock, flags);
- hso_start_net_device(odev->parent);
^ permalink raw reply related [flat|nested] 9+ messages in thread[parent not found: <200812181457.36340.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>]
* Re: [patch]startup race in hso driver [not found] ` <200812181457.36340.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org> @ 2008-12-18 13:59 ` Denis Joseph Barrow [not found] ` <494A5728.9070908-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org> 2008-12-19 3:45 ` David Miller 2009-01-12 10:03 ` Denis Joseph Barrow 2 siblings, 1 reply; 9+ messages in thread From: Denis Joseph Barrow @ 2008-12-18 13:59 UTC (permalink / raw) To: Oliver Neukum Cc: ajb-5+cxppFmGx6/3pe1ocb+s/XRex20P6io, Greg Kroah-Hartman, netdev-u79uwXL29TY76Z2rM5mHXA, jgarzik-e+AXbWqSrlAAvxtiuMwx3w, USB list Thanks Oliver, I'll add it to our internal tree. Oliver Neukum wrote: > The flag marking a device running must be set before the URBs for > recption are submitted or they may complete too early and fail to resubmit. > > Signed-off-by: Oliver Neukum <oneukum-l3A5Bk7waGM@public.gmane.org> > > Regards > Oliver > > --- > > diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c > index 8e90891..cc75c8b 100644 > --- a/drivers/net/usb/hso.c > +++ b/drivers/net/usb/hso.c > @@ -658,10 +658,9 @@ static int hso_net_open(struct net_device *net) > odev->rx_buf_missing = sizeof(struct iphdr); > spin_unlock_irqrestore(&odev->net_lock, flags); > > - hso_start_net_device(odev->parent); > - > /* We are up and running. */ > set_bit(HSO_NET_RUNNING, &odev->flags); > + hso_start_net_device(odev->parent); > > /* Tell the kernel we are ready to start receiving from it */ > netif_start_queue(net); > -- > To unsubscribe from this list: send the line "unsubscribe linux-usb" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- best regards, D.J. Barrow Linux Kernel Developer Option NV, Gaston Geenslaan 14, 3001 Leuven, Belgium T: +32 16 311 621 F: +32 16 207 164 Mobile Ireland: +353-86-1715438 Mobile Belgium +32-496-226190 d.barow-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org barrow_dj-/E1597aS9LQAvxtiuMwx3w@public.gmane.org www.option.com www.travelsmart.ie Disclaimer: http://www.option.com/company/disclaimer.shtml RPR Leuven 0429.375.448 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <494A5728.9070908-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org>]
* Re: [patch]startup race in hso driver [not found] ` <494A5728.9070908-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org> @ 2008-12-19 3:52 ` David Miller [not found] ` <20081218.195251.186334055.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org> 0 siblings, 1 reply; 9+ messages in thread From: David Miller @ 2008-12-19 3:52 UTC (permalink / raw) To: D.Barow-x9gZzRpC1QbQT0dZR+AlfA Cc: oliver-GvhC2dPhHPQdnm+yROfE0A, ajb-5+cxppFmGx6/3pe1ocb+s/XRex20P6io, gregkh-l3A5Bk7waGM, netdev-u79uwXL29TY76Z2rM5mHXA, jgarzik-e+AXbWqSrlAAvxtiuMwx3w, linux-usb-u79uwXL29TY76Z2rM5mHXA From: Denis Joseph Barrow <D.Barow-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org> Date: Thu, 18 Dec 2008 14:59:04 +0100 > Thanks Oliver, > I'll add it to our internal tree. Ok, I'll pull it out of net-next-2.6 then... -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <20081218.195251.186334055.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>]
* Re: [patch]startup race in hso driver [not found] ` <20081218.195251.186334055.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org> @ 2008-12-19 9:20 ` Denis Joseph Barrow 2008-12-23 3:54 ` David Miller 0 siblings, 1 reply; 9+ messages in thread From: Denis Joseph Barrow @ 2008-12-19 9:20 UTC (permalink / raw) To: David Miller Cc: oliver-GvhC2dPhHPQdnm+yROfE0A, ajb-5+cxppFmGx6/3pe1ocb+s/XRex20P6io, gregkh-l3A5Bk7waGM, netdev-u79uwXL29TY76Z2rM5mHXA, jgarzik-e+AXbWqSrlAAvxtiuMwx3w, linux-usb-u79uwXL29TY76Z2rM5mHXA No no no. Please put it in Dave, Our internal tree is a completely seperately maintained hso module which is ifdeffed out of existance to compile back to 2.6.11. It's typically made available at www.pharscape.org, the center of the universe for 3G on linux. David Miller wrote: > From: Denis Joseph Barrow <D.Barow-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org> > Date: Thu, 18 Dec 2008 14:59:04 +0100 > >> Thanks Oliver, >> I'll add it to our internal tree. > > Ok, I'll pull it out of net-next-2.6 then... -- best regards, D.J. Barrow Linux Kernel Developer Option NV, Gaston Geenslaan 14, 3001 Leuven, Belgium T: +32 16 311 621 F: +32 16 207 164 Mobile Ireland: +353-86-1715438 Mobile Belgium +32-496-226190 d.barow-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org barrow_dj-/E1597aS9LQAvxtiuMwx3w@public.gmane.org www.option.com www.travelsmart.ie Disclaimer: http://www.option.com/company/disclaimer.shtml RPR Leuven 0429.375.448 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [patch]startup race in hso driver 2008-12-19 9:20 ` Denis Joseph Barrow @ 2008-12-23 3:54 ` David Miller [not found] ` <20081222.195420.82285555.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org> 0 siblings, 1 reply; 9+ messages in thread From: David Miller @ 2008-12-23 3:54 UTC (permalink / raw) To: D.Barow; +Cc: oliver, ajb, gregkh, netdev, jgarzik, linux-usb From: Denis Joseph Barrow <D.Barow@option.com> Date: Fri, 19 Dec 2008 10:20:54 +0100 > No no no. > Please put it in Dave, > Our internal tree is a completely seperately maintained hso module > which is ifdeffed out of existance to compile back to 2.6.11. > > It's typically made available at www.pharscape.org, the center > of the universe for 3G on linux. Ok, thanks for the clarification, I've put the patch back into net-next-2.6 ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <20081222.195420.82285555.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>]
* Re: [patch]startup race in hso driver [not found] ` <20081222.195420.82285555.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org> @ 2008-12-23 12:33 ` Oliver Neukum 0 siblings, 0 replies; 9+ messages in thread From: Oliver Neukum @ 2008-12-23 12:33 UTC (permalink / raw) To: David Miller, linux-usb-u79uwXL29TY76Z2rM5mHXA Cc: D.Barow-x9gZzRpC1QbQT0dZR+AlfA, ajb-5+cxppFmGx6/3pe1ocb+s/XRex20P6io, gregkh-l3A5Bk7waGM, netdev-u79uwXL29TY76Z2rM5mHXA, jgarzik-e+AXbWqSrlAAvxtiuMwx3w Am Dienstag, 23. Dezember 2008 04:54:20 schrieb David Miller: > From: Denis Joseph Barrow <D.Barow-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org> > Date: Fri, 19 Dec 2008 10:20:54 +0100 > > > No no no. > > Please put it in Dave, > > Our internal tree is a completely seperately maintained hso module > > which is ifdeffed out of existance to compile back to 2.6.11. > > > > It's typically made available at www.pharscape.org, the center > > of the universe for 3G on linux. > > Ok, thanks for the clarification, I've put the patch back > into net-next-2.6 Perhaps that issue should be documented in MAINTAINERS. Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [patch]startup race in hso driver [not found] ` <200812181457.36340.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org> 2008-12-18 13:59 ` Denis Joseph Barrow @ 2008-12-19 3:45 ` David Miller 2009-01-12 10:03 ` Denis Joseph Barrow 2 siblings, 0 replies; 9+ messages in thread From: David Miller @ 2008-12-19 3:45 UTC (permalink / raw) To: oliver-GvhC2dPhHPQdnm+yROfE0A Cc: ajb-5+cxppFmGx6/3pe1ocb+s/XRex20P6io, gregkh-l3A5Bk7waGM, netdev-u79uwXL29TY76Z2rM5mHXA, jgarzik-e+AXbWqSrlAAvxtiuMwx3w, linux-usb-u79uwXL29TY76Z2rM5mHXA From: Oliver Neukum <oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org> Date: Thu, 18 Dec 2008 14:57:35 +0100 > The flag marking a device running must be set before the URBs for > recption are submitted or they may complete too early and fail to resubmit. > > Signed-off-by: Oliver Neukum <oneukum-l3A5Bk7waGM@public.gmane.org> Applied to net-next-2.6, thanks Oliver. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [patch]startup race in hso driver [not found] ` <200812181457.36340.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org> 2008-12-18 13:59 ` Denis Joseph Barrow 2008-12-19 3:45 ` David Miller @ 2009-01-12 10:03 ` Denis Joseph Barrow [not found] ` <496B1556.3010901-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org> 2 siblings, 1 reply; 9+ messages in thread From: Denis Joseph Barrow @ 2009-01-12 10:03 UTC (permalink / raw) To: Oliver Neukum Cc: ajb-5+cxppFmGx6/3pe1ocb+s/XRex20P6io, Greg Kroah-Hartman, netdev-u79uwXL29TY76Z2rM5mHXA, jgarzik-e+AXbWqSrlAAvxtiuMwx3w, USB list Hi Oliver, Is the patch below now obselete? I applied it to our internal tree, should I remove it? I've yet to check the code in the big patch with subject Re: another race in hso Does this patch render the small one below obselete? Oliver Neukum wrote: > The flag marking a device running must be set before the URBs for > recption are submitted or they may complete too early and fail to resubmit. > > Signed-off-by: Oliver Neukum <oneukum-l3A5Bk7waGM@public.gmane.org> > > Regards > Oliver > > --- > > diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c > index 8e90891..cc75c8b 100644 > --- a/drivers/net/usb/hso.c > +++ b/drivers/net/usb/hso.c > @@ -658,10 +658,9 @@ static int hso_net_open(struct net_device *net) > odev->rx_buf_missing = sizeof(struct iphdr); > spin_unlock_irqrestore(&odev->net_lock, flags); > > - hso_start_net_device(odev->parent); > - > /* We are up and running. */ > set_bit(HSO_NET_RUNNING, &odev->flags); > + hso_start_net_device(odev->parent); > > /* Tell the kernel we are ready to start receiving from it */ > netif_start_queue(net); > -- > To unsubscribe from this list: send the line "unsubscribe linux-usb" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- best regards, D.J. Barrow Linux Kernel Developer Option NV, Gaston Geenslaan 14, 3001 Leuven, Belgium T: +32 16 311 621 F: +32 16 207 164 d.barow-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org www.option.com Disclaimer: http://www.option.com/company/disclaimer.shtml -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <496B1556.3010901-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org>]
* Re: [patch]startup race in hso driver [not found] ` <496B1556.3010901-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org> @ 2009-01-12 10:57 ` Oliver Neukum 0 siblings, 0 replies; 9+ messages in thread From: Oliver Neukum @ 2009-01-12 10:57 UTC (permalink / raw) To: Denis Joseph Barrow Cc: ajb-5+cxppFmGx6/3pe1ocb+s/XRex20P6io, Greg Kroah-Hartman, netdev-u79uwXL29TY76Z2rM5mHXA, jgarzik-e+AXbWqSrlAAvxtiuMwx3w, USB list Am Monday 12 January 2009 11:03:02 schrieb Denis Joseph Barrow: > Hi Oliver, > Is the patch below now obselete? > I applied it to our internal tree, should I remove it? Hi, this patch is still needed. It fixes a completely different issue than the second, large patch I sent later. This patch solves a race between startup and urb completion. The second patch fixes a race between xmit and autosuspend. Earlier today you wanted your patches broken down by bugs they fix, so you've already gotten what you wanted ;-) Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-01-12 10:57 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-18 13:57 [patch]startup race in hso driver Oliver Neukum
[not found] ` <200812181457.36340.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2008-12-18 13:59 ` Denis Joseph Barrow
[not found] ` <494A5728.9070908-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org>
2008-12-19 3:52 ` David Miller
[not found] ` <20081218.195251.186334055.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2008-12-19 9:20 ` Denis Joseph Barrow
2008-12-23 3:54 ` David Miller
[not found] ` <20081222.195420.82285555.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2008-12-23 12:33 ` Oliver Neukum
2008-12-19 3:45 ` David Miller
2009-01-12 10:03 ` Denis Joseph Barrow
[not found] ` <496B1556.3010901-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org>
2009-01-12 10:57 ` Oliver Neukum
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).