dm cache: pass a new 'critical' flag to the policies when requesting writeback work
authorJoe Thornber <ejt@redhat.com>
Fri, 15 May 2015 14:20:09 +0000 (15:20 +0100)
committerMike Snitzer <snitzer@redhat.com>
Fri, 29 May 2015 18:19:04 +0000 (14:19 -0400)
commit20f6814b94fff4a98b123f1c2b691e936be27aaf
tree1845743b06f1a2e999a37c5ae98ba6649753a95a
parent066dbaa386c751164c39ab025e5e8803b4a4d691
dm cache: pass a new 'critical' flag to the policies when requesting writeback work

We only allow non critical writeback if the origin is idle.  It is up
to the policy to decide what writeback work is critical.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-policy-cleaner.c
drivers/md/dm-cache-policy-internal.h
drivers/md/dm-cache-policy-mq.c
drivers/md/dm-cache-policy.h
drivers/md/dm-cache-target.c