commit | b5d91704f53efc5a2a93e88e323877e6889b0f5b | [log] [tgz] |
---|---|---|
author | Ilya Dryomov <idryomov@gmail.com> | Sat Jan 23 15:57:51 2016 +0100 |
committer | Ilya Dryomov <idryomov@gmail.com> | Fri Mar 25 18:51:40 2016 +0100 |
tree | 16dcc0c8a99d937f412e0986a33591c21cf33aa4 | |
parent | bee3a37c470e4febcb05556ceafcb70929268edd [diff] |
libceph: behave in mon_fault() if cur_mon < 0 This can happen if __close_session() in ceph_monc_stop() races with a connection reset. We need to ignore such faults, otherwise it's likely we would take !hunting, call __schedule_delayed() and end up with delayed_work() executing on invalid memory, among other things. The (two!) con->private tests are useless, as nothing ever clears con->private. Nuke them. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>