From: Philipp Reisner Date: Thu, 11 Jan 2007 09:58:10 +0000 (+0100) Subject: [PATCH] ocfs2 heartbeat: clean up bio submission code X-Git-Tag: v2.6.21-rc1~92^2~21^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b559292e066f6d570cd5aa5dbd41de61dd04bdce;p=pandora-kernel.git [PATCH] ocfs2 heartbeat: clean up bio submission code As was already pointed out Mathieu Avila on Thu, 07 Sep 2006 03:15:25 -0700 that OCFS2 is expecting bio_add_page() to add pages to BIOs in an easily predictable manner. That is not true, especially for devices with own merge_bvec_fn(). Therefore OCFS2's heartbeat code is very likely to fail on such devices. Move the bio_put() call into the bio's bi_end_io() function. This makes the whole idea of trying to predict the behaviour of bio_add_page() unnecessary. Removed compute_max_sectors() and o2hb_compute_request_limits(). Signed-off-by: Philipp Reisner Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed