]> git.baikalelectronics.ru Git - kernel.git/commit
crush: return CRUSH_ITEM_UNDEF for failed placements with indep
authorIlya Dryomov <ilya.dryomov@inktank.com>
Tue, 24 Dec 2013 19:19:25 +0000 (21:19 +0200)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Tue, 31 Dec 2013 18:32:15 +0000 (20:32 +0200)
commit8b8e8d26b45416035e24b01afc61ba79325cfbcc
tree78984357ac4b19d53b8e51ad70c81be12d50e81c
parent0235b47bf7398d1619f73c5c0ae2c35d61be0375
crush: return CRUSH_ITEM_UNDEF for failed placements with indep

For firstn mode, if we fail to make a valid placement choice, we just
continue and return a short result to the caller.  For indep mode, however,
we need to make the position stable, and return an undefined value on
failed placements to avoid shifting later results to the left.

Reflects ceph.git commit b1d4dd4eb044875874a1d01c01c7d766db5d0a80.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
include/linux/crush/crush.h
net/ceph/crush/mapper.c