]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/bitmap: remove async freeing of bitmap file.
authorNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:56 +0000 (10:57 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:56 +0000 (10:57 +1000)
commitdf0acf890240572e52dfcc37230376ac7ba38d2f
treec7e8e2aef92866dc710f73e6380ac0ec7aae5570
parent244a785c50ad623462d022f7e004b32579e1a523
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