Skip to content

Commit 4dfddf5

Browse files
committed
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI updates from James Bottomley: "This update includes the usual round of major driver updates (hpsa, be2iscsi, hisi_sas, zfcp, cxlflash). There's a new incarnation of hpsa called smartpqi for which a driver is added, there's some cleanup work of the ibm vscsi target and updates to libfc, plus a whole host of minor fixes and updates and finally the removal of several ISA drivers which seem not to have been used for years" * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (173 commits) scsi: mvsas: Mark symbols static where possible scsi: pm8001: Mark symbols static where possible scsi: arcmsr: Simplify user_len checking scsi: fcoe: fix off by one in eth2fc_speed() scsi: dtc: remove from tree scsi: t128: remove from tree scsi: pas16: remove from tree scsi: u14-34f: remove from tree scsi: ultrastor: remove from tree scsi: in2000: remove from tree scsi: wd7000: remove from tree scsi: scsi_dh_alua: Fix memory leak in alua_rtpg() scsi: lpfc: Mark symbols static where possible scsi: hpsa: correct call to hpsa_do_reset scsi: ufs: Get a TM service response from the correct offset scsi: ibmvfc: Fix I/O hang when port is not mapped scsi: megaraid_sas: clean function declarations in megaraid_sas_base.c up scsi: ipr: Remove redundant messages at adapter init time scsi: ipr: Don't log unnecessary 9084 error details scsi: smartpqi: raid bypass lba calculation fix ...
2 parents d4e6547 + 14bf41d commit 4dfddf5

117 files changed

Lines changed: 12923 additions & 13623 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/powerpc/cxlflash.txt‎

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Block library API
121121
below.
122122

123123
The block library can be found on GitHub:
124-
http://www.github.com/mikehollinger/ibmcapikv
124+
http://github.com/open-power/capiflash
125125

126126

127127
CXL Flash Driver IOCTLs
@@ -171,11 +171,30 @@ DK_CXLFLASH_ATTACH
171171
destroyed, the tokens are to be considered stale and subsequent
172172
usage will result in errors.
173173

174+
- A valid adapter file descriptor (fd2 >= 0) is only returned on
175+
the initial attach for a context. Subsequent attaches to an
176+
existing context (DK_CXLFLASH_ATTACH_REUSE_CONTEXT flag present)
177+
do not provide the adapter file descriptor as it was previously
178+
made known to the application.
179+
174180
- When a context is no longer needed, the user shall detach from
175-
the context via the DK_CXLFLASH_DETACH ioctl.
181+
the context via the DK_CXLFLASH_DETACH ioctl. When this ioctl
182+
returns with a valid adapter file descriptor and the return flag
183+
DK_CXLFLASH_APP_CLOSE_ADAP_FD is present, the application _must_
184+
close the adapter file descriptor following a successful detach.
185+
186+
- When this ioctl returns with a valid fd2 and the return flag
187+
DK_CXLFLASH_APP_CLOSE_ADAP_FD is present, the application _must_
188+
close fd2 in the following circumstances:
189+
190+
+ Following a successful detach of the last user of the context
191+
+ Following a successful recovery on the context's original fd2
192+
+ In the child process of a fork(), following a clone ioctl,
193+
on the fd2 associated with the source context
176194

177-
- A close on fd2 will invalidate the tokens. This operation is not
178-
required by the user.
195+
- At any time, a close on fd2 will invalidate the tokens. Applications
196+
should exercise caution to only close fd2 when appropriate (outlined
197+
in the previous bullet) to avoid premature loss of I/O.
179198

180199
DK_CXLFLASH_USER_DIRECT
181200
-----------------------
@@ -254,14 +273,18 @@ DK_CXLFLASH_DETACH
254273
success, all "tokens" which had been provided to the user from the
255274
DK_CXLFLASH_ATTACH onward are no longer valid.
256275

276+
When the DK_CXLFLASH_APP_CLOSE_ADAP_FD flag was returned on a successful
277+
attach, the application _must_ close the fd2 associated with the context
278+
following the detach of the final user of the context.
279+
257280
DK_CXLFLASH_VLUN_CLONE
258281
----------------------
259282
This ioctl is responsible for cloning a previously created
260283
context to a more recently created context. It exists solely to
261284
support maintaining user space access to storage after a process
262285
forks. Upon success, the child process (which invoked the ioctl)
263286
will have access to the same LUNs via the same resource handle(s)
264-
and fd2 as the parent, but under a different context.
287+
as the parent, but under a different context.
265288

266289
Context sharing across processes is not supported with CXL and
267290
therefore each fork must be met with establishing a new context
@@ -275,6 +298,12 @@ DK_CXLFLASH_VLUN_CLONE
275298
translation tables are copied from the parent context to the child's
276299
and then synced with the AFU.
277300

301+
When the DK_CXLFLASH_APP_CLOSE_ADAP_FD flag was returned on a successful
302+
attach, the application _must_ close the fd2 associated with the source
303+
context (still resident/accessible in the parent process) following the
304+
clone. This is to avoid a stale entry in the file descriptor table of the
305+
child process.
306+
278307
DK_CXLFLASH_VERIFY
279308
------------------
280309
This ioctl is used to detect various changes such as the capacity of
@@ -309,6 +338,11 @@ DK_CXLFLASH_RECOVER_AFU
309338
at which time the context/resources they held will be freed as part of
310339
the release fop.
311340

341+
When the DK_CXLFLASH_APP_CLOSE_ADAP_FD flag was returned on a successful
342+
attach, the application _must_ unmap and close the fd2 associated with the
343+
original context following this ioctl returning success and indicating that
344+
the context was recovered (DK_CXLFLASH_RECOVER_AFU_CONTEXT_RESET).
345+
312346
DK_CXLFLASH_MANAGE_LUN
313347
----------------------
314348
This ioctl is used to switch a LUN from a mode where it is available

‎Documentation/scsi/00-INDEX‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ hpsa.txt
6464
- HP Smart Array Controller SCSI driver.
6565
hptiop.txt
6666
- HIGHPOINT ROCKETRAID 3xxx RAID DRIVER
67-
in2000.txt
68-
- info on in2000 driver
6967
libsas.txt
7068
- Serial Attached SCSI management layer.
7169
link_power_management_policy.txt

‎Documentation/scsi/dtc3x80.txt‎

Lines changed: 0 additions & 43 deletions
This file was deleted.

‎Documentation/scsi/in2000.txt‎

Lines changed: 0 additions & 202 deletions
This file was deleted.

‎Documentation/scsi/scsi-parameters.txt‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ parameters may be changed at runtime by the command
3434
See drivers/scsi/BusLogic.c, comment before function
3535
BusLogic_ParseDriverOptions().
3636

37-
dtc3181e= [HW,SCSI]
38-
See Documentation/scsi/g_NCR5380.txt.
39-
4037
eata= [HW,SCSI]
4138

4239
fdomain= [HW,SCSI]
@@ -47,9 +44,6 @@ parameters may be changed at runtime by the command
4744

4845
gvp11= [HW,SCSI]
4946

50-
in2000= [HW,SCSI]
51-
See header of drivers/scsi/in2000.c.
52-
5347
ips= [HW,SCSI] Adaptec / IBM ServeRAID controller
5448
See header of drivers/scsi/ips.c.
5549

@@ -83,9 +77,6 @@ parameters may be changed at runtime by the command
8377
Format: <buffer_size>,<write_threshold>
8478
See also Documentation/scsi/st.txt.
8579

86-
pas16= [HW,SCSI]
87-
See header of drivers/scsi/pas16.c.
88-
8980
scsi_debug_*= [SCSI]
9081
See drivers/scsi/scsi_debug.c.
9182

@@ -119,18 +110,9 @@ parameters may be changed at runtime by the command
119110
sym53c416= [HW,SCSI]
120111
See header of drivers/scsi/sym53c416.c.
121112

122-
t128= [HW,SCSI]
123-
See header of drivers/scsi/t128.c.
124-
125113
tmscsim= [HW,SCSI]
126114
See comment before function dc390_setup() in
127115
drivers/scsi/tmscsim.c.
128116

129-
u14-34f= [HW,SCSI] UltraStor 14F/34F SCSI host adapter
130-
See header of drivers/scsi/u14-34f.c.
131-
132117
wd33c93= [HW,SCSI]
133118
See header of drivers/scsi/wd33c93.c.
134-
135-
wd7000= [HW,SCSI]
136-
See header of drivers/scsi/wd7000.c.

0 commit comments

Comments
 (0)