mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-25 07:51:28 +00:00
scst_vdisk: Add a consistency check
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7912 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -3322,6 +3322,8 @@ static enum compl_status_e fileio_exec_async(struct vdisk_cmd_params *p)
|
||||
length = scst_get_buf_next(cmd, &address);
|
||||
}
|
||||
|
||||
WARN_ON_ONCE(kvec - p->async.kvec != scst_get_buf_count(cmd));
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0)
|
||||
iov_iter_kvec(&iter, dir, p->async.kvec, kvec - p->async.kvec, total);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user