]> git.baikalelectronics.ru Git - kernel.git/commit
dm: take care to copy the space map roots before locking the superblock
authorJoe Thornber <ejt@redhat.com>
Thu, 27 Mar 2014 14:13:23 +0000 (14:13 +0000)
committerMike Snitzer <snitzer@redhat.com>
Thu, 27 Mar 2014 20:56:23 +0000 (16:56 -0400)
commit51ac31477ba3e6d8424c994d81e6d142999dc7c0
tree4b14059d093b846876fa1203f31c0e31f23bcfe1
parent82aca7992f11f190621dd2a8836dc044a3a71de2
dm: take care to copy the space map roots before locking the superblock

In theory copying the space map root can fail, but in practice it never
does because we're careful to check what size buffer is needed.

But make certain we're able to copy the space map roots before
locking the superblock.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org # drop dm-era and dm-cache changes as needed
drivers/md/dm-cache-metadata.c
drivers/md/dm-era-target.c
drivers/md/dm-thin-metadata.c