Commit 4bf442b
committed
scsi: st: Don't set pos_unknown just after device recognition
jira NONE_AUTOMATION
Rebuild_History Non-Buildable kernel-5.14.0-570.12.1.el9_6
commit-author Kai Mäkisara <[email protected]>
commit 98b3788
Commit 9604eea ("scsi: st: Add third party poweron reset handling") in
v6.6 added new code to handle the Power On/Reset Unit Attention (POR UA)
sense data. This was in addition to the existing method. When this Unit
Attention is received, the driver blocks attempts to read, write and some
other operations because the reset may have rewinded the tape. Because of
the added code, also the initial POR UA resulted in blocking operations,
including those that are used to set the driver options after the device is
recognized. Also, reading and writing are refused, whereas they succeeded
before this commit.
Add code to not set pos_unknown to block operations if the POR UA is
received from the first test_ready() call after the st device has been
created. This restores the behavior before v6.6.
Signed-off-by: Kai Mäkisara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Fixes: 9604eea ("scsi: st: Add third party poweron reset handling")
CC: [email protected]
Closes: https://lore.kernel.org/linux-scsi/[email protected]/
Signed-off-by: Martin K. Petersen <[email protected]>
(cherry picked from commit 98b3788)
Signed-off-by: Jonathan Maple <[email protected]>1 parent 6cbbe65 commit 4bf442b
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1029 | 1029 | | |
1030 | 1030 | | |
1031 | 1031 | | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
1032 | 1037 | | |
1033 | 1038 | | |
1034 | 1039 | | |
| |||
4327 | 4332 | | |
4328 | 4333 | | |
4329 | 4334 | | |
| 4335 | + | |
4330 | 4336 | | |
4331 | 4337 | | |
4332 | 4338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
0 commit comments