]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libceph: don't go through with the mapping if the PG is too wide
authorIlya Dryomov <idryomov@gmail.com>
Wed, 8 Feb 2017 17:57:48 +0000 (18:57 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 20 Feb 2017 11:16:11 +0000 (12:16 +0100)
commitef9324bb11357c02a4f0529b806341e5b768d872
treeb759205966ff836406bca39d89282334438d5007
parent743efcffffc6620ab44ea9ec67c7e4e28dfa7742
libceph: don't go through with the mapping if the PG is too wide

With EC overwrites maturing, the kernel client will be getting exposed
to potentially very wide EC pools.  While "min(pi->size, X)" works fine
when the cluster is stable and happy, truncating OSD sets interferes
with resend logic (ceph_is_new_interval(), etc).  Abort the mapping if
the pool is too wide, assigning the request to the homeless session.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Sage Weil <sage@redhat.com>
net/ceph/osdmap.c