]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
libceph: introduce ceph_osdc_cancel_request()
authorIlya Dryomov <ilya.dryomov@inktank.com>
Thu, 19 Jun 2014 07:38:13 +0000 (11:38 +0400)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Tue, 8 Jul 2014 11:08:44 +0000 (15:08 +0400)
commitc9f9b93ddfd76498fe36d9f550bd26533a4ee6bf
treebc0fb9ea84b6705f82c4858e24ff5bc93b8c2000
parent4f23409e0c787be1a501527c79578833567a1e58
libceph: introduce ceph_osdc_cancel_request()

Introduce ceph_osdc_cancel_request() intended for canceling requests
from the higher layers (rbd and cephfs).  Because higher layers are in
charge and are supposed to know what and when they are canceling, the
request is not completed, only unref'ed and removed from the libceph
data structures.

__cancel_request() is no longer called before __unregister_request(),
because __unregister_request() unconditionally revokes r_request and
there is no point in trying to do it twice.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
include/linux/ceph/osd_client.h
net/ceph/osd_client.c