Skip to content
Commit d920ff6f authored by Benoît Canet's avatar Benoît Canet Committed by Ilya Dryomov
Browse files

libceph: Avoid holding the zero page on ceph_msgr_slab_init errors



ceph_msgr_slab_init may fail due to a temporary ENOMEM.

Delay a bit the initialization of zero_page in ceph_msgr_init and
reorder its cleanup in _ceph_msgr_exit so it's done in reverse
order of setup.

BUG_ON() will not suffer to be postponed in case it is triggered.

Signed-off-by: default avatarBenoît Canet <benoit.canet@nodalink.com>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent b79b2368
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment