summaryrefslogtreecommitdiffstats
path: root/net/mac802154
diff options
context:
space:
mode:
authorGuoqing Jiang <gqjiang@suse.com>2016-05-02 11:50:15 -0400
committerShaohua Li <shli@fb.com>2016-05-04 12:39:35 -0700
commitc84400c89f0f98ae4a73ed89886239b67d1dcd31 (patch)
treebc6b5b5563494ead2f8f10a769670259f90c860b /net/mac802154
parent23cea66a37c76dc6554b862b179a654db24fa83d (diff)
downloadop-kernel-dev-c84400c89f0f98ae4a73ed89886239b67d1dcd31.zip
op-kernel-dev-c84400c89f0f98ae4a73ed89886239b67d1dcd31.tar.gz
md-cluster/bitmap: unplug bitmap to sync dirty pages to disk
This patch is doing two distinct but related things. 1. It adds bitmap_unplug() for the main bitmap (mddev->bitmap). As bit have been set, BITMAP_PAGE_DIRTY is set so bitmap_deamon_work() will not write those pages out in its regular scans, only bitmap_unplug() will. If there are no writes to the array, bitmap_unplug() won't be called, so we need to call it explicitly here. 2. bitmap_write_all() is a bit of a confusing interface as it doesn't actually write anything. The current code for writing "bitmap" works but this change makes it a bit clearer. Reviewed-by: NeilBrown <neilb@suse.com> Signed-off-by: Guoqing Jiang <gqjiang@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'net/mac802154')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud