On Tue, Jun 28, 2011 at 04:43:35PM -0700, Curt Wohlgemuth wrote: > Contrary to the comment block atop writeback_inodes_sb_nr(), > we *were* calling > > wait_for_completion(&done); > > which should not be done, as this is not called for data > integrity sync. > > Signed-off-by: Curt Wohlgemuth <curtw@xxxxxxxxxx> The comment says it does not wait for IO to be -completed-. The function as implemented waits for IO to be *submitted*. This provides the callers with same blocking semantics (i.e. request queue full) as if the caller submitted the IO themselves. The code that uses this function rely on this blocking to delay the next set of operations they do until after IO has been started, so removing the completion will change their behaviour significantly. Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html