libceph: change from BUG to WARN for __remove_osd() asserts
authorIlya Dryomov <idryomov@redhat.com>
Wed, 5 Nov 2014 16:33:44 +0000 (19:33 +0300)
committerIlya Dryomov <idryomov@redhat.com>
Thu, 13 Nov 2014 19:26:34 +0000 (22:26 +0300)
No reason to use BUG_ON for osd request list assertions.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Alex Elder <elder@linaro.org>
net/ceph/osd_client.c

index decc3b74e65f453289d0b7b29c2fa8da1d784385..6f164289bde8860e333c747934da5459e807d7eb 100644 (file)
@@ -1007,8 +1007,8 @@ static void put_osd(struct ceph_osd *osd)
 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));
+       WARN_ON(!list_empty(&osd->o_requests));
+       WARN_ON(!list_empty(&osd->o_linger_requests));
 
        rb_erase(&osd->o_node, &osdc->osds);
        list_del_init(&osd->o_osd_lru);