summaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_device.c
diff options
context:
space:
mode:
authorKonstantin Shelekhin <k.shelekhin@yadro.com>2021-03-22 23:09:38 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-04-05 23:26:39 -0400
commit1b5ad814af5ed38fe66274c37800c093c8347994 (patch)
tree0bf4943c0924aca53597ace363bca11741f13939 /drivers/target/target_core_device.c
parent0aecfa662e4312046ece56bb5666796412abe8cb (diff)
downloadlinux-stable-1b5ad814af5ed38fe66274c37800c093c8347994.tar.gz
linux-stable-1b5ad814af5ed38fe66274c37800c093c8347994.tar.bz2
linux-stable-1b5ad814af5ed38fe66274c37800c093c8347994.zip
scsi: target: Make the virtual LUN 0 device
Create the device for the virtual LUN 0 using the DUMMY flag. This change makes it possible to remove some special-casing in the INQUIRY code. Link: https://lore.kernel.org/r/20210322200938.53300-3-k.shelekhin@yadro.com Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com> Reviewed-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Konstantin Shelekhin <k.shelekhin@yadro.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/target/target_core_device.c')
-rw-r--r--drivers/target/target_core_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c
index 74d3a4896588..a8df9f0a82fa 100644
--- a/drivers/target/target_core_device.c
+++ b/drivers/target/target_core_device.c
@@ -1035,7 +1035,7 @@ int core_dev_setup_virtual_lun0(void)
{
struct se_hba *hba;
struct se_device *dev;
- char buf[] = "rd_pages=8,rd_nullio=1";
+ char buf[] = "rd_pages=8,rd_nullio=1,rd_dummy=1";
int ret;
hba = core_alloc_hba("rd_mcp", 0, HBA_FLAGS_INTERNAL_USE);