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:
Matt Jacob 2003-09-13 02:01:56 +00:00
parent 4b39f27d17
commit 53d0345138

View File

@ -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);