From: Mikulas Patocka Date: Mon, 16 Mar 2009 17:44:30 +0000 (+0000) Subject: dm io: respect BIO_MAX_PAGES limit X-Git-Tag: v2.6.27.21~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49838e7c80ce1bf98ac567c5b7131ac9992b5043;p=pandora-kernel.git dm io: respect BIO_MAX_PAGES limit commit d659e6cc98766a1a61d6bdd283f95d149abd7719 upstream. dm-io calls bio_get_nr_vecs to get the maximum number of pages to use for a given device. It allocates one additional bio_vec to use internally but failed to respect BIO_MAX_PAGES, so fix this. This was the likely cause of: https://bugzilla.redhat.com/show_bug.cgi?id=173153 Signed-off-by: Mikulas Patocka Signed-off-by: Alasdair G Kergon Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed