diff options
Diffstat (limited to 'fs/ceph/osd_client.c')
-rw-r--r-- | fs/ceph/osd_client.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ceph/osd_client.c b/fs/ceph/osd_client.c index a0aac436d5d4..80b868f7a0fc 100644 --- a/fs/ceph/osd_client.c +++ b/fs/ceph/osd_client.c | |||
@@ -821,9 +821,10 @@ static void kick_requests(struct ceph_osd_client *osdc, | |||
821 | 821 | ||
822 | n = rb_next(p); | 822 | n = rb_next(p); |
823 | if (!ceph_osd_is_up(osdc->osdmap, osd->o_osd) || | 823 | if (!ceph_osd_is_up(osdc->osdmap, osd->o_osd) || |
824 | !ceph_entity_addr_equal(&osd->o_con.peer_addr, | 824 | memcmp(&osd->o_con.peer_addr, |
825 | ceph_osd_addr(osdc->osdmap, | 825 | ceph_osd_addr(osdc->osdmap, |
826 | osd->o_osd))) | 826 | osd->o_osd), |
827 | sizeof(struct ceph_entity_addr)) != 0) | ||
827 | reset_osd(osdc, osd); | 828 | reset_osd(osdc, osd); |
828 | } | 829 | } |
829 | } | 830 | } |