Hi,

this makes sure memory allocation in OHCI for 2.4 always uses either
GFP_ATOMIC or GFP_NOIO. As we cannot tell in 2.4 whether we
are in the block IO path, we always have to assume the worst, hence
GFP_KERNEL cannot be used.
Greg, please apply.

        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], 2003-02-05 11:06:26+01:00, [EMAIL PROTECTED]
  - fix possible memory allocation deadlock with storage


 usb-ohci.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/drivers/usb/usb-ohci.c b/drivers/usb/usb-ohci.c
--- a/drivers/usb/usb-ohci.c    Wed Feb  5 13:19:26 2003
+++ b/drivers/usb/usb-ohci.c    Wed Feb  5 13:19:26 2003
@@ -621,7 +621,7 @@
 
        /* allocate the private part of the URB */
        urb_priv = kmalloc (sizeof (urb_priv_t) + size * sizeof (td_t *), 
-                                                       in_interrupt() ? GFP_ATOMIC : 
GFP_KERNEL);
+                                                       in_interrupt() ? GFP_ATOMIC : 
+GFP_NOIO);
        if (!urb_priv) {
                usb_dec_dev_use (urb->dev);     
                return -ENOMEM;

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


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


begin 664 bkpatch8604
M'XL(`$X!03X``ZV4;V^;,!#&7\>?XJ2^654!9\`0F+*E2_\L:M=$V?JZ,N`$
M%((CXRR-Q(>?`U*Z3EFTK;,08)\?\]S=3YS!8RU4W)-E\5TH<@:?9:W-5%2R
M$G8N5Z(LJLVS+=7"!&=2FJ"S7W8ZA9,L+:V$J)U-G5BN[1.S;<IUFH.)UG&/
MVMYA1>_6(N[-KF\?[R]GA`P&,,IYM1!?A8;!@"3+8;81I;U4DN?[+S:'<.,B
M4F1(7<\/T&TP1,J:(,QXZ'L8,>9G5%"R4&(Q[.2I7+V6>T;<-_K`9PWUT:/D
M"JC=CWQ`ST'700:4QAC$;G"!Y@6ARW!XK!9P0<%"\@G>[GE$4K!@7CS#6M9U
MD90"5F(EU0YX6<J4ZT)6D`F>F<D2MH7.H=92\84@=T"93UTR?:DCL?YR$((<
MR8<CB61JGW[;V+:Y,D\+._TI*T9-5N;FAPWG(48\ZT=A,N=!=*IT)\[UT$5S
M'C)&&]\-&+:,'-]_')@W>/X5GE,VJ>DEFB8R8S.,L"7)BUZ#Q&)&_Q`D^A]!
M2EL5W-Y,G^ZN9P_7]Z!E.WN8C"?`:]@:OO@.$@%%!1R2%BL36G.=&Z*ZND_`
M4MOV,H1,?]."?V#M*G!]H&3</7K=**JGHM)"J<U:OSN'CZW=RV^3+^,1Q`?O
<Y^]??BUI+M)EO5D-^G/FF190\@,<TA]YR`0`````
`
end



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to