Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'dm-3.17-fix2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm

Pull device mapper fix from Mike Snitzer:
"Fix a race in the DM cache target that caused dirty blocks to be
marked as clean. This could cause no writeback to occur or spurious
dirty block counts"

* tag 'dm-3.17-fix2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
dm cache: fix race causing dirty blocks to be marked as clean

+2 -2
+2 -2
drivers/md/dm-cache-target.c
··· 895 895 struct cache *cache = mg->cache; 896 896 897 897 if (mg->writeback) { 898 - cell_defer(cache, mg->old_ocell, false); 899 898 clear_dirty(cache, mg->old_oblock, mg->cblock); 899 + cell_defer(cache, mg->old_ocell, false); 900 900 cleanup_migration(mg); 901 901 return; 902 902 ··· 951 951 } 952 952 953 953 } else { 954 + clear_dirty(cache, mg->new_oblock, mg->cblock); 954 955 if (mg->requeue_holder) 955 956 cell_defer(cache, mg->new_ocell, true); 956 957 else { 957 958 bio_endio(mg->new_ocell->holder, 0); 958 959 cell_defer(cache, mg->new_ocell, false); 959 960 } 960 - clear_dirty(cache, mg->new_oblock, mg->cblock); 961 961 cleanup_migration(mg); 962 962 } 963 963 }