]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: allow addrvecs with a single NONE/blank address
authorIlya Dryomov <idryomov@gmail.com>
Mon, 3 May 2021 15:09:01 +0000 (17:09 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 4 May 2021 14:06:15 +0000 (16:06 +0200)
commit573ecd18535700f87534148e39e9e5ff987531ba
treed3795e0cb962e791d5c312f432c1c0393cb467c0
parente65773717bef34fe4a635b7e9390e770dd5b3fd8
libceph: allow addrvecs with a single NONE/blank address

Normally, an unused OSD id/slot is represented by an empty addrvec.
However, it also appears to be possible to generate an osdmap where
an unused OSD id/slot has an addrvec with a single blank address of
type NONE.  Allow such addrvecs and make the end result be exactly
the same as for the empty addrvec case -- leave addr intact.

Cc: stable@vger.kernel.org # 5.11+
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
net/ceph/decode.c