]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: move schedule_delayed_work() in ceph_osdc_init()
authorIlya Dryomov <idryomov@gmail.com>
Thu, 28 Apr 2016 14:07:24 +0000 (16:07 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 25 May 2016 22:36:28 +0000 (00:36 +0200)
commitec2476a801a30aff63a824891a5814ef77ef24b7
tree7fb861b2779b2e9e83af367a0f33a4b3893e3258
parent67b6cf46898a78e550dce984fe357ac6d2352eab
libceph: move schedule_delayed_work() in ceph_osdc_init()

ceph_osdc_stop() isn't called if ceph_osdc_init() fails, so we end up
with handle_osds_timeout() running on invalid memory if any one of the
allocations fails.  Call schedule_delayed_work() after everything is
setup, just before returning.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/osd_client.c