aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-snap-persistent.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2009-10-16 18:18:16 -0400
committerAlasdair G Kergon <agk@redhat.com>2009-10-16 18:18:16 -0400
commit4c6fff445d7aa753957856278d4d93bcad6e2c14 (patch)
tree56ac3d262699fe5a42f76fe9f992277a6a7a2934 /drivers/md/dm-snap-persistent.c
parent0e8c4e4e3ebb15756ddc4170a88149a2cd323cfe (diff)
dm snapshot: lock snapshot while supplying status
This patch locks the snapshot when returning status. It fixes a race when it could return an invalid number of free chunks if someone was simultaneously modifying it. Cc: stable@kernel.org Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-snap-persistent.c')
0 files changed, 0 insertions, 0 deletions