aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/cxlflash/vlun.c2
-rw-r--r--include/uapi/scsi/cxlflash_ioctl.h10
2 files changed, 12 insertions, 0 deletions
diff --git a/drivers/scsi/cxlflash/vlun.c b/drivers/scsi/cxlflash/vlun.c
index a53f583e2d7b..50f8e9300770 100644
--- a/drivers/scsi/cxlflash/vlun.c
+++ b/drivers/scsi/cxlflash/vlun.c
@@ -1008,6 +1008,8 @@ int cxlflash_disk_virtual_open(struct scsi_device *sdev, void *arg)
1008 virt->last_lba = last_lba; 1008 virt->last_lba = last_lba;
1009 virt->rsrc_handle = rsrc_handle; 1009 virt->rsrc_handle = rsrc_handle;
1010 1010
1011 if (lli->port_sel == BOTH_PORTS)
1012 virt->hdr.return_flags |= DK_CXLFLASH_ALL_PORTS_ACTIVE;
1011out: 1013out:
1012 if (likely(ctxi)) 1014 if (likely(ctxi))
1013 put_context(ctxi); 1015 put_context(ctxi);
diff --git a/include/uapi/scsi/cxlflash_ioctl.h b/include/uapi/scsi/cxlflash_ioctl.h
index 831351b2e660..2302f3ce5f86 100644
--- a/include/uapi/scsi/cxlflash_ioctl.h
+++ b/include/uapi/scsi/cxlflash_ioctl.h
@@ -31,6 +31,16 @@ struct dk_cxlflash_hdr {
31}; 31};
32 32
33/* 33/*
34 * Return flag definitions available to all ioctls
35 *
36 * Similar to the input flags, these are grown from the bottom-up with the
37 * intention that ioctl-specific return flag definitions would grow from the
38 * top-down, allowing the two sets to co-exist. While not required/enforced
39 * at this time, this provides future flexibility.
40 */
41#define DK_CXLFLASH_ALL_PORTS_ACTIVE 0x0000000000000001ULL
42
43/*
34 * Notes: 44 * Notes:
35 * ----- 45 * -----
36 * The 'context_id' field of all ioctl structures contains the context 46 * The 'context_id' field of all ioctl structures contains the context