crush: be more tolerant of nonsensical crush maps
authorSage Weil <sage@inktank.com>
Mon, 7 May 2012 22:35:24 +0000 (15:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:38:03 +0000 (11:38 -0800)
commit20501b9e6e1db8e7ab6668ef15d697b1c057a50a
tree337645b14368ad41867843483fee7731aa996397
parent9926776ca573b23914d5265457202307a3715748
crush: be more tolerant of nonsensical crush maps

(cherry picked from commit a1f4895be8bf1ba56c2306b058f51619e9b0e8f8)

If we get a map that doesn't make sense, error out or ignore the badness
instead of BUGging out.  This reflects the ceph.git commits
9895f0bff7dc68e9b49b572613d242315fb11b6c and
8ded26472058d5205803f244c2f33cb6cb10de79.

Reviewed-by: Alex Elder <elder@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/crush/mapper.c