commit | 46faeed4a61e220b99591e9773057160eb437cc8 | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@inktank.com> | Wed Apr 10 17:47:46 2013 -0500 |
committer | Sage Weil <sage@inktank.com> | Wed Apr 17 11:39:09 2013 -0700 |
tree | cba50f0421c71726396cf1d527570046ba117cc6 | |
parent | 6e2a4505dba0cae8faa701426185dfb7b49f537c [diff] |
rbd: do a safe list traversal in rbd_img_request_submit() It's possible that the reference to the object request dropped inside the loop in rbd_img_request_submit() will be the last one, in which case the content of the object pointer can't be trusted. Use a safe form of the object request list traversal to avoid problems. This resolves: http://tracker.ceph.com/issues/4705 Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>