]> git.karo-electronics.de Git - karo-tx-linux.git/commit
BLOCK: Fix bounce limit address check
authorAndi Kleen <ak@suse.de>
Thu, 29 Jun 2006 18:54:26 +0000 (20:54 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 25 Jul 2006 03:35:19 +0000 (20:35 -0700)
commit9f24916834aaa1a31d90505c671e4746471200bf
tree08d9e3f1a05893433598e14c4ff52273b9b148e8
parent395e8c5b6b0a3ceaf5e95b79f327028a8a48f481
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: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
block/ll_rw_blk.c