mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 02:31:27 +00:00
scst_vdisk: Only execute commands with a data buffer asynchronously
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7925 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -3241,7 +3241,15 @@ static bool do_fileio_async(const struct vdisk_cmd_params *p)
|
||||
struct scst_device *dev = cmd->dev;
|
||||
struct scst_vdisk_dev *virt_dev = dev->dh_priv;
|
||||
|
||||
return virt_dev->async && dev->dev_dif_mode == SCST_DIF_MODE_NONE;
|
||||
if (!virt_dev->async || dev->dev_dif_mode != SCST_DIF_MODE_NONE)
|
||||
return false;
|
||||
switch (cmd->data_direction) {
|
||||
case SCST_DATA_READ:
|
||||
case SCST_DATA_WRITE:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
static bool vdisk_alloc_kvec(struct scst_cmd *cmd, struct vdisk_cmd_params *p)
|
||||
|
||||
Reference in New Issue
Block a user