Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
When stop_sync is set, don't stop any dirty-threshold driven cleanings.
Browse files Browse the repository at this point in the history
Only stop explicit syncs.
  • Loading branch information
Mohan Srinivasan committed Jul 19, 2010
1 parent db82405 commit 551e62d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flashcache_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ flashcache_clean_set(struct cache_c *dmc, int set)
* stop cleanings inside flashcache_dirty_writeback() because we could
* have started a device remove after tested this here.
*/
if (atomic_read(&dmc->fast_remove_in_prog) || sysctl_flashcache_stop_sync)
if (atomic_read(&dmc->fast_remove_in_prog))
return;
writes_list = kmalloc(dmc->assoc * sizeof(struct dbn_index_pair), GFP_NOIO);
if (unlikely(sysctl_flashcache_error_inject & WRITES_LIST_ALLOC_FAIL)) {
Expand Down

0 comments on commit 551e62d

Please sign in to comment.