projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6562d66
)
libceph: assert both regular and lingering lists in __remove_osd()
author
Ilya Dryomov
<ilya.dryomov@inktank.com>
Wed, 18 Jun 2014 09:02:12 +0000
(13:02 +0400)
committer
Ilya Dryomov
<ilya.dryomov@inktank.com>
Tue, 8 Jul 2014 11:08:43 +0000
(15:08 +0400)
It is important that both regular and lingering requests lists are
empty when the OSD is removed.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
net/ceph/osd_client.c
patch
|
blob
|
history
diff --git
a/net/ceph/osd_client.c
b/net/ceph/osd_client.c
index 052eb8bfcc74378e70b9d285c9aa3ea3e14fec98..a9b7ea7bfdc6ad6ceb64eb434b7a14b7b68304ee 100644
(file)
--- 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);