projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
530994d
)
[SCSI] libfc: fix stats computation in fc_queuecommand()
author
Hillf Danton
<
[email protected]
>
Wed, 1 Dec 2010 00:18:33 +0000
(16:18 -0800)
committer
James Bottomley
<
[email protected]
>
Tue, 21 Dec 2010 18:24:21 +0000
(12:24 -0600)
There seems accumulation needed.
Signed-off-by: Hillf Danton <
[email protected]
>
Signed-off-by: Robert Love <
[email protected]
>
Signed-off-by: James Bottomley <
[email protected]
>
drivers/scsi/libfc/fc_fcp.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/libfc/fc_fcp.c
b/drivers/scsi/libfc/fc_fcp.c
index b9ad74de76da61e9392039fd00785b4082a6fca5..0e985dbaedc4feb9f419a51486e6a029353d0d9a 100644
(file)
--- a/
drivers/scsi/libfc/fc_fcp.c
+++ b/
drivers/scsi/libfc/fc_fcp.c
@@
-1820,11
+1820,11
@@
static int fc_queuecommand_lck(struct scsi_cmnd *sc_cmd, void (*done)(struct scs
if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) {
fsp->req_flags = FC_SRB_READ;
stats->InputRequests++;
- stats->InputMegabytes = fsp->data_len;
+ stats->InputMegabytes
+
= fsp->data_len;
} else if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) {
fsp->req_flags = FC_SRB_WRITE;
stats->OutputRequests++;
- stats->OutputMegabytes = fsp->data_len;
+ stats->OutputMegabytes
+
= fsp->data_len;
} else {
fsp->req_flags = 0;
stats->ControlRequests++;