From: Ilya Dryomov Date: Wed, 18 Jun 2014 09:02:12 +0000 (+0400) Subject: libceph: assert both regular and lingering lists in __remove_osd() X-Git-Tag: firefly_0821_release~176^2~3410^2~33 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7c6e6fc53e7335570ed82f77656cedce1502744e;p=firefly-linux-kernel-4.4.55.git libceph: assert both regular and lingering lists in __remove_osd() It is important that both regular and lingering requests lists are empty when the OSD is removed. Signed-off-by: Ilya Dryomov Reviewed-by: Alex Elder --- diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index 052eb8bfcc74..a9b7ea7bfdc6 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c @@ -1032,6 +1032,8 @@ static void __remove_osd(struct ceph_osd_client *osdc, struct ceph_osd *osd) { dout("__remove_osd %p\n", osd); BUG_ON(!list_empty(&osd->o_requests)); + BUG_ON(!list_empty(&osd->o_linger_requests)); + rb_erase(&osd->o_node, &osdc->osds); list_del_init(&osd->o_osd_lru); ceph_con_close(&osd->o_con);