From ff5ea568349e8f98a541517dd57f4aa42c8ef934 Mon Sep 17 00:00:00 2001 From: mjacob Date: Sat, 13 Sep 2003 02:01:56 +0000 Subject: [PATCH] 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. --- sys/cam/scsi/scsi_sa.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/cam/scsi/scsi_sa.c b/sys/cam/scsi/scsi_sa.c index f2f45a9ab691..79e44c72c918 100644 --- a/sys/cam/scsi/scsi_sa.c +++ b/sys/cam/scsi/scsi_sa.c @@ -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);