]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/bitmap: remove async freeing of bitmap file.
authorNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:21 +0000 (13:55 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:21 +0000 (13:55 +1000)
commit62f82faaceb483284ea938b3a092b9f0a4d2d029
tree5b2d6799ca52ceb3a6d4882f6232e010e90bdd22
parent7466712347c58c367636cc875801c8703bc729e7
md/bitmap: remove async freeing of bitmap file.

There is no real value in freeing things the moment there is an error.
It is just as good to free the bitmap file and pages when the bitmap
is explicitly removed (and replaced?) or at shutdown.

With this gone, the bitmap will only disappear when the array is
quiescent, so we can remove some locking.

As the 'filemap' doesn't disappear now, include extra checks before
trying to write any of it out.
Also remove the check for "has it disappeared" in
bitmap_daemon_write().

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/bitmap.c