Hi,

the previous patch was buggy. The state must be set _before_ the
condition is checked, or there's a window missing a wakeup.
This incremental change set fixes that.

        Regards
                Oliver

You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.

===================================================================


[EMAIL PROTECTED], 2004-05-19 18:13:04+02:00, [EMAIL PROTECTED]
  - fix race condition with current->state


 kaweth.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


diff -Nru a/drivers/usb/net/kaweth.c b/drivers/usb/net/kaweth.c
--- a/drivers/usb/net/kaweth.c  Wed May 19 18:13:49 2004
+++ b/drivers/usb/net/kaweth.c  Wed May 19 18:13:49 2004
@@ -1250,9 +1250,10 @@
                 return status;
         }
 
+       set_current_state(TASK_UNINTERRUPTIBLE);
        while (timeout && !awd.done) {
-               set_current_state(TASK_UNINTERRUPTIBLE);
                timeout = schedule_timeout(timeout);
+               set_current_state(TASK_UNINTERRUPTIBLE);
        }
 
         set_current_state(TASK_RUNNING);

===================================================================


This BitKeeper patch contains the following changesets:
1.1755
## Wrapped with gzip_uu ##


M'XL( +V'JT   \5476O;0!!\]OV*A;RT!$GW*4LJ#ODRK4E(C6(_F_/I8AE;
[EMAIL PROTECTED]".W.W,[.H#.86FVR7K->OFB#SN!#8UW6JZ2:
M:U>&M=ZL-E78F(4OY4WC2U'95#K:]T<3H[6-%D8O:([EMAIL PROTECTED]'0G;X
MXCX_ZZR7#]]/[Z]RA 8#N"EEO="/VL%@@%QC7N2ZL)?2E>NF#IV1M:VTDZ%J
MJO;0VE*,J;\%Z3,LXI;$F/=;10I")">ZP)0G,4?[V2Z_UW#,Q#U/[EMAIL PROTECTED]
MSU.&;H&$I"\$8!YA$9$42)(1EF%^CFF&,9QDAG," 4;7\'>5W" % 3PM/X&1
M2H-JZF+IEDT-VZ4K06V,T;4++JR33J,[\"J2%(V_[18%OWDAA"5&%_#<N?9C
M#87I=F"CC9U'*[GM]J .<[EMAIL PROTECTED]&..6)"EE[5RGDG/\-.=%H3"GI]=W1%IK=T2\
M]RDF5"0M2_S++C^G$%V<_LGT/XG5Z]/[E&'1,B[29)<R$1]GC&8B>3UC% +R
MOS.V=^ C!&:[>WQFQB?-^(/\C;S/% CJ6>UF7T^?[0Y_,[EZO)M-'T8/DV&>
M3\>3T?7]\.T[=.L1W",ZI.B0OPX]_)]4J=7*;JH!87,>2Z;1%TW['B<9!0  


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to