uml: limit request size on COWed devices
authorJeff Dike <jdike@addtoit.com>
Mon, 16 Jul 2007 06:38:58 +0000 (23:38 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:39 +0000 (09:05 -0700)
commit8619b86f20588c020b280e6f67a9b8712b1ee38a
treefb4c1d31ba40eb6b380fdf0fe956848edf93760f
parente8234483e7545b3cd298b0265fcee2e4a14c9f51
uml: limit request size on COWed devices

COWed devices can't handle more than 32 (64 on x86_64) sectors in one request
due to the size of the bitmap being carried around in the io_thread_req.

Enforce that by telling the block layer not to put too many sectors in
requests to COWed devices.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/drivers/ubd_kern.c