Re: Problem with >1 page GFP_KERNEL kmalloc()

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 30 Mar 1997 22:38:29 +0100 (BST)


> We only should be carefull about the following:
>
> - Drivers shall not request such memory at GFP_ATOMIC priority
> or under interrupt when they want to be successfull.
> - Drivers must free memory as soon as they do not need it more.
> - The allocation function must allow callers to wait for
> memory availability in normal situations.

These are not however the right answers. Until you have a "coalesce"
operation on your memory, eg by moving unlocked buffers around or
discarding the right things you will have this problem.

Alan