Project

General

Profile

Bug #10449 » 0001-ceph-fix-kick_requests.patch

Zheng Yan, 01/08/2015 04:39 AM

View differences:

fs/ceph/mds_client.c
static void kick_requests(struct ceph_mds_client *mdsc, int mds)
{
struct ceph_mds_request *req;
struct rb_node *p;
struct rb_node *p = rb_first(&mdsc->request_tree);
dout("kick_requests mds%d\n", mds);
for (p = rb_first(&mdsc->request_tree); p; p = rb_next(p)) {
while (p) {
req = rb_entry(p, struct ceph_mds_request, r_node);
p = rb_next(p);
if (req->r_got_unsafe)
continue;
if (req->r_session &&
(5-5/7)