]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rbd: fix snapshot context reference count for discards
authorJosh Durgin <josh.durgin@inktank.com>
Sat, 5 Apr 2014 00:47:52 +0000 (17:47 -0700)
committerIlya Dryomov <idryomov@redhat.com>
Tue, 14 Oct 2014 17:03:32 +0000 (21:03 +0400)
commitbef95455a44e2533fcea376740bb1a5cbd71269f
treeefa29053bad92a2b961dbc702351f73e7e27678a
parent3c5df89367761d09d76454a2c4301a73bf2d46ce
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: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c