[PATCH] direct-io return value fix
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.
Showing
Please register or sign in to comment