BLOCK: Fix bounce limit address check
commit3d6cf29b3f117605c66583b9145f53d39c695a6e
authorAndi Kleen <ak@suse.de>
Mon, 7 Aug 2006 19:26:18 +0000 (7 21:26 +0200)
committerAdrian Bunk <bunk@stusta.de>
Mon, 7 Aug 2006 19:26:18 +0000 (7 21:26 +0200)
tree7a6e7ab73e7269a89bc4c0fdff27e92b67ab2161
parentad29cb6531ebcc567327ab3030516f2f400a1c4e
BLOCK: Fix bounce limit address check

This fixes some OOMs on 64bit systems with <4GB of RAM when accessing
the cdrom.

Do a safer check for when to enable DMA. Currently we enable ISA DMA
for cases that do not need it, resulting in OOM conditions when ZONE_DMA
runs out of space.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
block/ll_rw_blk.c