Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3612abbd authored by Sage Weil's avatar Sage Weil
Browse files

ceph: fix reconnect encoding for old servers



Fix the reconnect encoding to encode the cap record when the MDS does not
have the FLOCK capability (i.e., pre v0.22).

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 3d4401d9
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -2374,6 +2374,8 @@ static int encode_caps_cb(struct inode *inode, struct ceph_cap *cap,
						num_fcntl_locks,
						num_fcntl_locks,
						num_flock_locks);
						num_flock_locks);
		unlock_kernel();
		unlock_kernel();
	} else {
		err = ceph_pagelist_append(pagelist, &rec, reclen);
	}
	}


out_free:
out_free: