dm: bounce_pfn limit added
authorVasily Averin <vvs@sw.ru>
Wed, 31 Oct 2007 07:33:24 +0000 (08:33 +0100)
committerJens Axboe <axboe@carl.home.kernel.dk>
Fri, 2 Nov 2007 07:47:25 +0000 (08:47 +0100)
commit5ec140e600b7d6624c657f008833f0e71bd5ef48
tree44691c88d767418a57797e84253a4633825c0c98
parent6f5d8aa6382eef2b26032c88656270bdae7f0c42
dm: bounce_pfn limit added

Device mapper uses its own bounce_pfn that may differ from one on underlying
device. In that way dm can build incorrect requests that contain sg elements
greater than underlying device is able to handle.

This is the cause of slab corruption in i2o layer, occurred on i386 arch when
very long direct IO requests are addressed to dm-over-i2o device.

Signed-off-by: Vasily Averin <vvs@sw.ru>
Cc: <stable@kernel.org>
Cc: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/md/dm-table.c
include/linux/device-mapper.h