mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[SCSI] libfc: Fix e_d_tov ns -> ms scaling factor in PLOGI response.
Both PLOGI and RTV response processing conditionally scale e_d_tov, but use different scaling factors. The scaling factor is correct in RTV response processing. Bring PLOGI e_d_tov scaling in line with RTV common service parameter inspection. Signed-off-by: Hugh Daschbach <[email protected]> Acked-by: Joe Eykholt <[email protected]> Signed-off-by: Robert Love <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
10897ae71d
commit
3b709150b7
1 changed files with 1 additions and 1 deletions
|
|
@ -623,7 +623,7 @@ static void fc_rport_plogi_resp(struct fc_seq *sp, struct fc_frame *fp,
|
|||
|
||||
tov = ntohl(plp->fl_csp.sp_e_d_tov);
|
||||
if (ntohs(plp->fl_csp.sp_features) & FC_SP_FT_EDTR)
|
||||
tov /= 1000;
|
||||
tov /= 1000000;
|
||||
if (tov > rdata->e_d_tov)
|
||||
rdata->e_d_tov = tov;
|
||||
csp_seq = ntohs(plp->fl_csp.sp_tot_seq);
|
||||
|
|
|
|||
Loading…
Reference in a new issue