]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: Avoid holding the zero page on ceph_msgr_slab_init errors
authorBenoît Canet <benoit.canet@nodalink.com>
Thu, 25 Jun 2015 19:02:57 +0000 (21:02 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 24 Aug 2015 07:55:09 +0000 (10:55 +0300)
commit43d95dcbe384dbbd72d842b85d398dda2c22ebd2
treef78dc05fb21249947aebbffa36c32b6edd6381e3
parent9d64d5c93de010aca20ede9491fa3de77d91482c
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 it's 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: Benoît Canet <benoit.canet@nodalink.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/messenger.c