diff --git a/.gitignore b/.gitignore index 60d04ac80..bcb84e655 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ *.sdtstub.S *~ .cache.mk +.cache/ .ctf .depend_adm .depend_d diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 2d044cce4..4e52a229f 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -1335,7 +1335,7 @@ static int vdisk_open_fd(struct scst_vdisk_dev *virt_dev, bool read_only) * For block devices, get the optimal I/O size from the block device * characteristics. */ - if (virt_dev->bdev_handle && !virt_dev->opt_trans_len_set) + if (virt_dev->blockio && !virt_dev->opt_trans_len_set) virt_dev->opt_trans_len = bdev_io_opt(virt_dev->bdev_handle->bdev) ? : virt_dev->opt_trans_len;