Skip to content

Commit 6d4c1a3

Browse files
Al Virohubcapsc
authored andcommitted
orangefs: fix do_readv_writev() handling of error halfway through
Error should only be returned if nothing had been read/written. Otherwise we need to report a short read/write instead. Signed-off-by: Al Viro <[email protected]> Signed-off-by: Mike Marshall <[email protected]>
1 parent 524b1d3 commit 6d4c1a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/orangefs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,9 @@ static ssize_t do_readv_writev(enum ORANGEFS_io_type type, struct file *file,
350350
break;
351351
} /*end while */
352352

353+
out:
353354
if (total_count > 0)
354355
ret = total_count;
355-
out:
356356
if (ret > 0) {
357357
if (type == ORANGEFS_IO_READ) {
358358
file_accessed(file);

0 commit comments

Comments
 (0)