mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-22 19:14:51 +00:00
rbd: don't put snap_context twice in rbd_queue_workfn()
[ Upstream commit70b16db86f] Commit4e752f0ab0("rbd: access snapshot context and mapping size safely") moved ceph_get_snap_context() out of rbd_img_request_create() and into rbd_queue_workfn(), adding a ceph_put_snap_context() to the error path in rbd_queue_workfn(). However, rbd_img_request_create() consumes a ref on snapc, so calling ceph_put_snap_context() after a successful rbd_img_request_create() leads to an extra put. Fix it. Cc: stable@vger.kernel.org # 3.18+ Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Josh Durgin <jdurgin@redhat.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
This commit is contained in:
parent
c0cdea628d
commit
ebf6b53291
1 changed files with 1 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue