From: Alex Elder Date: Wed, 14 Nov 2012 18:25:19 +0000 (-0600) Subject: rbd: use a common layout for each device X-Git-Tag: v3.9-rc1~41^2~21^2~59^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0903e875caa93e1fb231dd66c69b118dbdad25cb;p=pandora-kernel.git rbd: use a common layout for each device Each osd message includes a layout structure, and for rbd it is always the same (at least for osd's in a given pool). Initialize a layout structure when an rbd_dev gets created and just copy that into osd requests for the rbd image. Replace an assertion that was done when initializing the layout structures with code that catches and handles anything that would trigger the assertion as soon as it is identified. This precludes that (bad) condition from ever occurring. Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed