Hi,
some part of the synchronous API is used in the block io error handling
code paths. Therefore it may use only GFP_NOIO, not GFP_KERNEL.
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-03-18 10:08:40+01:00, [EMAIL PROTECTED]
- avoid deadlock due to wrong memory allocation in block io path
message.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -Nru a/drivers/usb/core/message.c b/drivers/usb/core/message.c
--- a/drivers/usb/core/message.c Tue Mar 18 10:21:55 2003
+++ b/drivers/usb/core/message.c Tue Mar 18 10:21:55 2003
@@ -88,7 +88,7 @@
int retv;
int length;
- urb = usb_alloc_urb(0, GFP_KERNEL);
+ urb = usb_alloc_urb(0, GFP_NOIO);
if (!urb)
return -ENOMEM;
@@ -131,7 +131,7 @@
int usb_control_msg(struct usb_device *dev, unsigned int pipe, __u8 request, __u8 requesttype,
__u16 value, __u16 index, void *data, __u16 size, int timeout)
{
- struct usb_ctrlrequest *dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_KERNEL);
+ struct usb_ctrlrequest *dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_NOIO);
int ret;
if (!dr)
===================================================================
This BitKeeper patch contains the following changesets:
1.1469
## Wrapped with gzip_uu ##
begin 664 bkpatch19037
M'XL(`#/E=CX``ZU584_;,!#]7/^*D_@"8TWLV'&33IV`L3'$-"HF/J,DOJ91
[EMAIL PROTECTED]/WY.BLJH6C0ZJJA-<G<O[^Z]7O;@ND(S[.EY<8>&[,%775EWB:4N
MT9OJ!<Z+LO[E:9.[X)[EMAIL PROTECTED](7-(XL=D47*P:]IC'
M5W?LPRT.>U>?SZZ_'5\1,[EMAIL PROTECTED]&))T=J1KGWLSH9-H^KUF%FX!2
[EMAIL PROTECTED]<J<J&,235,[EMAIL PROTECTED]<LSO7A>SBEG$:4B$F%#9<PB
M<@K,8T+&0+GO#A8!HT,:#04]I&Q(*2P;/-HT"C@,H$_)"[EMAIL PROTECTED]
MH#!1<YW-P&&"U7!O=)G#`A?:/$`R=Z'$%KJ$HH2TRRLTW"[EMAIL PROTECTED]&`C)\F
M2OJO_!!"$TH^;NCHI+`7B+=.:[297^2E-KC>'!=AS!L1#C*14E0JB@:"1R^-
M<"OL4JF8RI`WDDDN'*DU995I83O+^9DK\Q=854F.7M8"!%0ZB%`()AM&I8B;
MB0P=&S&0*G+0/'[EMAIL PROTECTED]:\,_*F7C9[>O=AKMM[^_P"%C$II.!-&$NY
M='H0//>Y'(;\7WS.WM+GQTJA<[EMAIL PROTECTED];J<(C\.;%Y5UMEX:
MX!+ZYKX[G$_'&Z>[EMAIL PROTECTED]/'[EMAIL PROTECTED];[EMAIL PROTECTED]<9_Q()#.A['DG<I\
ML)O*;IL%;[EMAIL PROTECTED],OXYOOE^66KZ]IV*R9MAGI:8VB,-N`>I1RGW,G>_;'6
M5-\^CQVT/XU;Z<[EMAIL PROTECTED]/4^?;_JX.`#.65<M/G+GUYE39W9
MKB*S9F[P9XV5A7?*.)S9HD/9KXK?J"?[FW,/GL&O7I'9%+-952]&BH4LD`S)
)'[EMAIL PROTECTED]
`
end