ceph: remove redundant test of head->safe and silence static analysis warnings
authorBrad Hubbard <bhubbard@redhat.com>
Tue, 18 Aug 2015 02:18:53 +0000 (10:18 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 8 Sep 2015 20:14:29 +0000 (23:14 +0300)
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/mds_client.c

index ddc471c3223000ef5d272d1cbd6ab5956d003785..d4eaa849a820e97ea54911ce9f20efdf594bf38a 100644 (file)
@@ -2415,7 +2415,7 @@ static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg)
                mutex_unlock(&mdsc->mutex);
                goto out;
        }
-       if (req->r_got_safe && !head->safe) {
+       if (req->r_got_safe) {
                pr_warn("got unsafe after safe on %llu from mds%d\n",
                           tid, mds);
                mutex_unlock(&mdsc->mutex);