• Andrew Morton's avatar
    [PATCH] direct-io return value fix · fe1659c1
    Andrew Morton authored
    If at the end of direct_io_worker, dio->result is non-zero then we
    unconditionally copy that into the return value, potentially ignoring any I/O
    errors which were accumulated into local variable `ret'.
    
    Only do the assignment if `ret' is zero.
    fe1659c1
direct-io.c 26.2 KB