I forgot whom I got this from- only set single initiator buffered mode
if we've recorded in our softc that we should set it.
This commit is contained in:
parent
8b2b52752a
commit
ff5ea56834
@ -2765,8 +2765,10 @@ sasetparams(struct cam_periph *periph, sa_params params_to_set,
|
||||
/* set the speed to the current value */
|
||||
mode_hdr->dev_spec = current_speed;
|
||||
|
||||
/* set single-initiator buffering mode */
|
||||
mode_hdr->dev_spec |= SMH_SA_BUF_MODE_SIBUF;
|
||||
/* if set, set single-initiator buffering mode */
|
||||
if (softc->buffer_mode == SMH_SA_BUF_MODE_SIBUF) {
|
||||
mode_hdr->dev_spec |= SMH_SA_BUF_MODE_SIBUF;
|
||||
}
|
||||
|
||||
if (mode_blk)
|
||||
mode_hdr->blk_desc_len = sizeof(struct scsi_mode_blk_desc);
|
||||
|
Loading…
Reference in New Issue
Block a user