]> git.hungrycats.org Git - linux/commit
[PATCH] Use __GFP_REPEAT for cdrom buffer
authorAndrew Morton <akpm@osdl.org>
Mon, 29 Dec 2003 13:43:08 +0000 (05:43 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 29 Dec 2003 13:43:08 +0000 (05:43 -0800)
commit40ea9a64ebf1f7bd62da177824e61ada5505896b
tree59099f86b3b741078b4cb52f7833c1016373e9de
parent4d1ba80c02e0938e8cba50d27cd00a43d0609d83
[PATCH] Use __GFP_REPEAT for cdrom buffer

The cdrom driver does an order-4 allocation and the open will fail if that
allocation does not succeed.  This happened to me on an unstressed 900MB
machine.

So add the __GFP_REPEAT flag in there - this will cause the page allocator to
keep on freeing pages until the allocation succeeds.

It can in theory livelock but in practice I expect it is OK: the user should
just stop running dbench or whatever it is which is gobbling all the memory
and the mount/open will then succeed.
drivers/ide/ide-cd.c