From: Ilya Dryomov Date: Wed, 5 Nov 2014 16:33:44 +0000 (+0300) Subject: libceph: change from BUG to WARN for __remove_osd() asserts X-Git-Tag: v3.12.39~125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27f9c1807c7e33efec5c02ef8a101774839214b8;p=thirdparty%2Fkernel%2Fstable.git libceph: change from BUG to WARN for __remove_osd() asserts commit cc9f1f518cec079289d11d732efa490306b1ddad upstream. No reason to use BUG_ON for osd request list assertions. Signed-off-by: Ilya Dryomov Reviewed-by: Alex Elder Signed-off-by: Jiri Slaby --- diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index 4e24b73385826..ba3330e9665d7 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c @@ -975,8 +975,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);