]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: only discard deallocated regions of a blob if !shared
authorSage Weil <sage@redhat.com>
Mon, 13 Mar 2017 11:32:12 +0000 (07:32 -0400)
committerSage Weil <sage@redhat.com>
Tue, 21 Mar 2017 18:56:29 +0000 (13:56 -0500)
commit44d498332c4da6d6340c05ad9cce2d37cbcc5951
tree08ac90519db2523488d496e906968e9224572406
parentd3a425faf88db8f14eaa825fc1a3ea87b7e3ac5d
os/bluestore: only discard deallocated regions of a blob if !shared

If a blob is shared, we can't discard deallocated regions: there may
be deferred buffers in flight and we might get a read via the clone.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc