Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ad3efdb7
Commit
ad3efdb7
authored
Feb 03, 2017
by
James Bottomley
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'mkp-scsi/4.10/scsi-fixes' into fixes
parents
6f3e71c0
f2e767bb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
drivers/scsi/mpt3sas/mpt3sas_scsih.c
drivers/scsi/mpt3sas/mpt3sas_scsih.c
+15
-0
drivers/scsi/qla2xxx/qla_isr.c
drivers/scsi/qla2xxx/qla_isr.c
+2
-1
drivers/scsi/qla2xxx/qla_os.c
drivers/scsi/qla2xxx/qla_os.c
+1
-1
No files found.
drivers/scsi/mpt3sas/mpt3sas_scsih.c
View file @
ad3efdb7
...
...
@@ -4657,6 +4657,7 @@ _scsih_io_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index, u32 reply)
struct
MPT3SAS_DEVICE
*
sas_device_priv_data
;
u32
response_code
=
0
;
unsigned
long
flags
;
unsigned
int
sector_sz
;
mpi_reply
=
mpt3sas_base_get_reply_virt_addr
(
ioc
,
reply
);
scmd
=
_scsih_scsi_lookup_get_clear
(
ioc
,
smid
);
...
...
@@ -4715,6 +4716,20 @@ _scsih_io_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index, u32 reply)
}
xfer_cnt
=
le32_to_cpu
(
mpi_reply
->
TransferCount
);
/* In case of bogus fw or device, we could end up having
* unaligned partial completion. We can force alignment here,
* then scsi-ml does not need to handle this misbehavior.
*/
sector_sz
=
scmd
->
device
->
sector_size
;
if
(
unlikely
(
scmd
->
request
->
cmd_type
==
REQ_TYPE_FS
&&
sector_sz
&&
xfer_cnt
%
sector_sz
))
{
sdev_printk
(
KERN_INFO
,
scmd
->
device
,
"unaligned partial completion avoided (xfer_cnt=%u, sector_sz=%u)
\n
"
,
xfer_cnt
,
sector_sz
);
xfer_cnt
=
round_down
(
xfer_cnt
,
sector_sz
);
}
scsi_set_resid
(
scmd
,
scsi_bufflen
(
scmd
)
-
xfer_cnt
);
if
(
ioc_status
&
MPI2_IOCSTATUS_FLAG_LOG_INFO_AVAILABLE
)
log_info
=
le32_to_cpu
(
mpi_reply
->
IOCLogInfo
);
...
...
drivers/scsi/qla2xxx/qla_isr.c
View file @
ad3efdb7
...
...
@@ -3238,7 +3238,7 @@ qla2x00_free_irqs(scsi_qla_host_t *vha)
* from a probe failure context.
*/
if
(
!
ha
->
rsp_q_map
||
!
ha
->
rsp_q_map
[
0
])
return
;
goto
free_irqs
;
rsp
=
ha
->
rsp_q_map
[
0
];
if
(
ha
->
flags
.
msix_enabled
)
{
...
...
@@ -3258,6 +3258,7 @@ qla2x00_free_irqs(scsi_qla_host_t *vha)
free_irq
(
pci_irq_vector
(
ha
->
pdev
,
0
),
rsp
);
}
free_irqs:
pci_free_irq_vectors
(
ha
->
pdev
);
}
...
...
drivers/scsi/qla2xxx/qla_os.c
View file @
ad3efdb7
...
...
@@ -1616,7 +1616,7 @@ qla2x00_abort_all_cmds(scsi_qla_host_t *vha, int res)
/* Don't abort commands in adapter during EEH
* recovery as it's not accessible/responding.
*/
if
(
!
ha
->
flags
.
eeh_busy
)
{
if
(
GET_CMD_SP
(
sp
)
&&
!
ha
->
flags
.
eeh_busy
)
{
/* Get a reference to the sp and drop the lock.
* The reference ensures this sp->done() call
* - and not the call in qla2xxx_eh_abort() -
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment