diff options
author | Shaohua Li <shli@fb.com> | 2015-09-02 13:49:49 -0700 |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2015-11-01 13:48:26 +1100 |
commit | 828cbe989e4f5c8666cb3d99918b03666ccde0a0 (patch) | |
tree | d0a2523905dbada0b75104e22e6b8d93fec77a78 /drivers/md/raid5.h | |
parent | 509ffec7089d10521ac91d4537b789d76103b4c0 (diff) |
raid5-cache: optimize FLUSH IO with log enabled
With log enabled, bio is written to raid disks after the bio is settled
down in log disk. The recovery guarantees we can recovery the bio data
from log disk, so we we skip FLUSH IO.
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'drivers/md/raid5.h')
-rw-r--r-- | drivers/md/raid5.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h index 1f16d437bfda..32c8ce81248b 100644 --- a/drivers/md/raid5.h +++ b/drivers/md/raid5.h @@ -629,4 +629,5 @@ extern int r5l_write_stripe(struct r5l_log *log, struct stripe_head *head_sh); extern void r5l_write_stripe_run(struct r5l_log *log); extern void r5l_flush_stripe_to_raid(struct r5l_log *log); extern void r5l_stripe_write_finished(struct stripe_head *sh); +extern int r5l_handle_flush_request(struct r5l_log *log, struct bio *bio); #endif |