rbd: fix snapshot context reference count for discards
Discards take a reference to the snapshot context of an image when
they are created. This reference needs to be cleaned up when the
request is done just as it is for regular writes.
Signed-off-by: NJosh Durgin <josh.durgin@inktank.com>
Showing
想要评论请 注册 或 登录