Changed scsi_da device requests to use the sysctl tunable value for retry_count
and da_default_timeout where their current hardcoded values matched the current default value for said tunables. PR: kern/169976 Reviewed by: pjd (mentor) Approved by: mav
This commit is contained in:
parent
fd16fbdd70
commit
1a71c5b935
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245253
@ -2044,7 +2044,7 @@ dastart(struct cam_periph *periph, union ccb *start_ccb)
|
||||
break;
|
||||
}
|
||||
scsi_read_capacity(&start_ccb->csio,
|
||||
/*retries*/4,
|
||||
/*retries*/da_retry_count,
|
||||
dadone,
|
||||
MSG_SIMPLE_Q_TAG,
|
||||
rcap,
|
||||
@ -2067,7 +2067,7 @@ dastart(struct cam_periph *periph, union ccb *start_ccb)
|
||||
break;
|
||||
}
|
||||
scsi_read_capacity_16(&start_ccb->csio,
|
||||
/*retries*/ 4,
|
||||
/*retries*/ da_retry_count,
|
||||
/*cbfcnp*/ dadone,
|
||||
/*tag_action*/ MSG_SIMPLE_Q_TAG,
|
||||
/*lba*/ 0,
|
||||
@ -2076,7 +2076,7 @@ dastart(struct cam_periph *periph, union ccb *start_ccb)
|
||||
/*rcap_buf*/ (uint8_t *)rcaplong,
|
||||
/*rcap_buf_len*/ sizeof(*rcaplong),
|
||||
/*sense_len*/ SSD_FULL_SIZE,
|
||||
/*timeout*/ 60000);
|
||||
/*timeout*/ da_default_timeout * 1000);
|
||||
start_ccb->ccb_h.ccb_bp = NULL;
|
||||
start_ccb->ccb_h.ccb_state = DA_CCB_PROBE2;
|
||||
xpt_action(start_ccb);
|
||||
|
Loading…
Reference in New Issue
Block a user