raid5-cache: optimize FLUSH IO with log enabled
authorShaohua Li <shli@fb.com>
Wed, 2 Sep 2015 20:49:49 +0000 (13:49 -0700)
committerNeilBrown <neilb@suse.com>
Sun, 1 Nov 2015 02:48:26 +0000 (13:48 +1100)
commit828cbe989e4f5c8666cb3d99918b03666ccde0a0
treed0a2523905dbada0b75104e22e6b8d93fec77a78
parent509ffec7089d10521ac91d4537b789d76103b4c0
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>
drivers/md/raid5-cache.c
drivers/md/raid5.c
drivers/md/raid5.h