wait for it and flush the log when WB_SYNC_ALL is requested. Signed-off-by: Steven Whitehouse