]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: a couple tweaks for wait loops
authorIlya Dryomov <idryomov@gmail.com>
Tue, 19 May 2015 09:03:33 +0000 (12:03 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 25 Jun 2015 08:49:29 +0000 (11:49 +0300)
commit3232bba9394988046ee4435ec95eb5a5253aaeeb
tree1f62dde05052f03bbaf1021cfaaa30e99e2d7087
parent049a5d941e2d8b55153a0218738a8a364848ed76
libceph: a couple tweaks for wait loops

- return -ETIMEDOUT instead of -EIO in case of timeout
- wait_event_interruptible_timeout() returns time left until timeout
  and since it can be almost LONG_MAX we had better assign it to long

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Alex Elder <elder@linaro.org>
net/ceph/ceph_common.c
net/ceph/mon_client.c