Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(543)

Issue 6612045: CHROMIUM: gobi: Fix races in qc_deregister() once and for all. (Closed)

Created:
9 years, 9 months ago by Elly Fong-Jones
Modified:
9 years, 4 months ago
CC:
chromium-os-reviews_chromium.org, vb+kernel_google.com, Olof Johansson, sleffler+cc_chromium.org, msb+croskernel_chromium.org
Visibility:
Public.

Description

CHROMIUM: gobi: Fix races in qc_deregister() once and for all. This is a fix to my rewritten driver, and is ported from the fix at http://codereview.chromium.org/6602058/. Signed-off-by: Elly Jones <ellyjones@chromium.org>; Signed-off-by: Jason Glasgow <jglasgow@chromium.org>; Signed-off-by: Mandeep Singh Baines <msb@chromium.org>; BUG=chromium-os:10342 TEST=/opt/Qualcomm/bin/open-deauth Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=41b9938

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix object-visibility race. #

Total comments: 6

Patch Set 3 : Fixes per jglasgow. #

Patch Set 4 : Rebase. #

Total comments: 4

Patch Set 5 : Remove bogus initializer. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -42 lines) Patch
M drivers/net/usb/gobi/qcusbnet.h View 1 chunk +4 lines, -0 lines 0 comments Download
M drivers/net/usb/gobi/qcusbnet.c View 1 2 3 4 4 chunks +48 lines, -3 lines 0 comments Download
M drivers/net/usb/gobi/qmidevice.c View 1 2 3 9 chunks +20 lines, -39 lines 0 comments Download
M drivers/net/usb/gobi/structs.h View 1 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Elly Fong-Jones
9 years, 9 months ago (2011-03-09 21:35:56 UTC) #1
Jason Glasgow
I'm concerned. http://codereview.chromium.org/6612045/diff/1/drivers/net/usb/gobi/qcusbnet.c File drivers/net/usb/gobi/qcusbnet.c (right): http://codereview.chromium.org/6612045/diff/1/drivers/net/usb/gobi/qcusbnet.c#newcode47 drivers/net/usb/gobi/qcusbnet.c:47: mutex_lock(&dev->lock); What if the other thread "wins" ...
9 years, 9 months ago (2011-03-09 23:47:55 UTC) #2
Elly Fong-Jones
Hm. I have a theoretical fix for the race you pointed out. Thoughts? http://codereview.chromium.org/6612045/diff/1/drivers/net/usb/gobi/qcusbnet.c File ...
9 years, 9 months ago (2011-03-10 18:29:13 UTC) #3
Jason Glasgow
Looking better http://codereview.chromium.org/6612045/diff/3001/drivers/net/usb/gobi/qcusbnet.c File drivers/net/usb/gobi/qcusbnet.c (right): http://codereview.chromium.org/6612045/diff/3001/drivers/net/usb/gobi/qcusbnet.c#newcode221 drivers/net/usb/gobi/qcusbnet.c:221: /* See the comments in qcusbnet_get() for ...
9 years, 9 months ago (2011-03-10 18:36:28 UTC) #4
Elly Fong-Jones
http://codereview.chromium.org/6612045/diff/3001/drivers/net/usb/gobi/qcusbnet.c File drivers/net/usb/gobi/qcusbnet.c (right): http://codereview.chromium.org/6612045/diff/3001/drivers/net/usb/gobi/qcusbnet.c#newcode221 drivers/net/usb/gobi/qcusbnet.c:221: /* See the comments in qcusbnet_get() for an explanation ...
9 years, 9 months ago (2011-03-10 19:15:46 UTC) #5
Mandeep Singh Baines
Hmm, shouldn't this be done by implementing release()? See Documentation/filesystems/vfs.txt
9 years, 9 months ago (2011-03-10 21:18:37 UTC) #6
Elly Fong-Jones
On 2011/03/10 21:18:37, Mandeep Singh Baines wrote: > Hmm, shouldn't this be done by implementing ...
9 years, 9 months ago (2011-03-10 21:35:30 UTC) #7
Mandeep Singh Baines
On 2011/03/10 21:35:30, Elly Jones wrote: > On 2011/03/10 21:18:37, Mandeep Singh Baines wrote: > ...
9 years, 9 months ago (2011-03-14 18:38:08 UTC) #8
Mandeep Singh Baines
On 2011/03/14 18:38:08, Mandeep Singh Baines wrote: > On 2011/03/10 21:35:30, Elly Jones wrote: > ...
9 years, 9 months ago (2011-03-14 18:58:33 UTC) #9
Elly Fong-Jones
On 2011/03/14 18:38:08, Mandeep Singh Baines wrote: > On 2011/03/10 21:35:30, Elly Jones wrote: > ...
9 years, 9 months ago (2011-03-14 19:20:26 UTC) #10
Mandeep Singh Baines
On 2011/03/14 19:20:26, Elly Jones wrote: > On 2011/03/14 18:38:08, Mandeep Singh Baines wrote: > ...
9 years, 9 months ago (2011-03-14 19:32:46 UTC) #11
Elly Fong-Jones
On 2011/03/14 19:32:46, Mandeep Singh Baines wrote: > On 2011/03/14 19:20:26, Elly Jones wrote: > ...
9 years, 9 months ago (2011-03-15 16:44:38 UTC) #12
Elly Fong-Jones
msb: Easier to read now?
9 years, 9 months ago (2011-03-16 19:08:00 UTC) #13
Mandeep Singh Baines
One nit. One question. http://codereview.chromium.org/6612045/diff/14001/drivers/net/usb/gobi/qcusbnet.c File drivers/net/usb/gobi/qcusbnet.c (right): http://codereview.chromium.org/6612045/diff/14001/drivers/net/usb/gobi/qcusbnet.c#newcode56 drivers/net/usb/gobi/qcusbnet.c:56: struct qcusbnet *entry = NULL; ...
9 years, 9 months ago (2011-03-16 20:49:41 UTC) #14
Elly Fong-Jones
http://codereview.chromium.org/6612045/diff/14001/drivers/net/usb/gobi/qcusbnet.c File drivers/net/usb/gobi/qcusbnet.c (right): http://codereview.chromium.org/6612045/diff/14001/drivers/net/usb/gobi/qcusbnet.c#newcode56 drivers/net/usb/gobi/qcusbnet.c:56: struct qcusbnet *entry = NULL; On 2011/03/16 20:49:41, Mandeep ...
9 years, 9 months ago (2011-03-16 21:23:08 UTC) #15
Mandeep Singh Baines
LGTM
9 years, 9 months ago (2011-03-16 21:30:19 UTC) #16
Elly Fong-Jones
On 2011/03/16 21:30:19, Mandeep Singh Baines wrote: > LGTM Cool. jglasgow?
9 years, 9 months ago (2011-03-16 22:11:31 UTC) #17
Jason Glasgow
9 years, 9 months ago (2011-03-17 17:48:45 UTC) #18
LGTM

Powered by Google App Engine
This is Rietveld 408576698