Skip to content

Commit 7c6e6fc

Browse files
committed
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 <[email protected]> Reviewed-by: Alex Elder <[email protected]>
1 parent 6562d66 commit 7c6e6fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/ceph/osd_client.c

+2
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,8 @@ static void __remove_osd(struct ceph_osd_client *osdc, struct ceph_osd *osd)
10321032
{
10331033
dout("__remove_osd %p\n", osd);
10341034
BUG_ON(!list_empty(&osd->o_requests));
1035+
BUG_ON(!list_empty(&osd->o_linger_requests));
1036+
10351037
rb_erase(&osd->o_node, &osdc->osds);
10361038
list_del_init(&osd->o_osd_lru);
10371039
ceph_con_close(&osd->o_con);

0 commit comments

Comments
 (0)