mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 13:11:27 +00:00
vdisk_fileio: Fix asynchronous I/O handling
This patch avoids that SCSI WRITEs trigger weird errors with async=1. Reported-by: Sietse van Zanen <sietse@wizdom.nu> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7982 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -3239,7 +3239,7 @@ static void fileio_async_complete(struct kiocb *iocb, long ret, long ret2)
|
||||
scst_set_busy(cmd);
|
||||
}
|
||||
} else {
|
||||
scst_set_resp_data_len(cmd, ret);
|
||||
WARN_ON_ONCE(ret < scst_cmd_get_data_len(cmd));
|
||||
}
|
||||
cmd->completed = 1;
|
||||
cmd->scst_cmd_done(cmd, SCST_CMD_STATE_DEFAULT, SCST_CONTEXT_SAME);
|
||||
|
||||
Reference in New Issue
Block a user