mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 05:01:27 +00:00
scst_vdisk, async file I/O: Fix a WARN_ON_ONCE() statement
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8661 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -3261,7 +3261,7 @@ static enum compl_status_e fileio_exec_async(struct vdisk_cmd_params *p)
|
||||
length = scst_get_buf_next(cmd, &address);
|
||||
}
|
||||
|
||||
WARN_ON_ONCE(sg_cnt != scst_get_buf_count(cmd));
|
||||
WARN_ON_ONCE(sg_cnt != cmd->sg_cnt);
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0)
|
||||
iov_iter_kvec(&iter, dir, p->async.kvec, sg_cnt, total);
|
||||
|
||||
Reference in New Issue
Block a user