]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: reschedule tick in mon_fault()
authorIlya Dryomov <idryomov@gmail.com>
Fri, 22 Jan 2016 17:42:17 +0000 (18:42 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 25 Mar 2016 17:51:40 +0000 (18:51 +0100)
commitd1961a4e79c0db04599edfeeb8d09de798832327
tree3a37b82da1d64f3c0bf00a1305d9f8b3909ee42e
parent54fc12be82db3ce6fe38caf4d46e7960667b185d
libceph: reschedule tick in mon_fault()

Doing __schedule_delayed() in the hunting branch is pointless, as the
tick will have already been scheduled by then.

What we need to do instead is *reschedule* it in the !hunting branch,
after reopen_session() changes hunt_mult, which affects the delay.
This helps with spacing out connection attempts and avoiding things
like two back-to-back attempts followed by a longer period of waiting
around.

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