Skip to content

Commit cd43045

Browse files
author
Sage Weil
committed
libceph: initialize rb, list nodes in ceph_osd_request
These don't strictly need to be initialized based on how they are used, but it is good practice to do so. Reported-by: Alex Elder <elder@inktank.com> Signed-off-by: Sage Weil <sage@inktank.com>
1 parent d50b409 commit cd43045

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎net/ceph/osd_client.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,13 @@ struct ceph_osd_request *ceph_osdc_alloc_request(struct ceph_osd_client *osdc,
213213
kref_init(&req->r_kref);
214214
init_completion(&req->r_completion);
215215
init_completion(&req->r_safe_completion);
216+
rb_init_node(&req->r_node);
216217
INIT_LIST_HEAD(&req->r_unsafe_item);
217218
INIT_LIST_HEAD(&req->r_linger_item);
218219
INIT_LIST_HEAD(&req->r_linger_osd);
219220
INIT_LIST_HEAD(&req->r_req_lru_item);
221+
INIT_LIST_HEAD(&req->r_osd_item);
222+
220223
req->r_flags = flags;
221224

222225
WARN_ON((flags & (CEPH_OSD_FLAG_READ|CEPH_OSD_FLAG_WRITE)) == 0);

0 commit comments

Comments
 (0)