Initialize the buf_queue of the pt(4) driver.
PR: kern/3629: /sys/scsi/pt.c doesn't... Submitted by: simokawa@sat.t.u-tokyo.ac.jp (Hidetoshi Shimokawa) Add a catch-all record for removable SCSI devices to default them to only one LUN. PR: kern/3580: Bad LUN probes on Xyratex...
This commit is contained in:
parent
c4b0dab7d5
commit
eceeb60438
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25977
@ -37,7 +37,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: pt.c,v 1.20 1997/02/22 09:44:26 peter Exp $
|
||||
* $Id: pt.c,v 1.21 1997/03/23 06:33:45 bde Exp $
|
||||
*/
|
||||
|
||||
#include "opt_bounce.h"
|
||||
@ -88,7 +88,7 @@ static struct scsi_device pt_switch =
|
||||
0,
|
||||
{0, 0},
|
||||
SDEV_ONCE_ONLY, /* Only one open allowed */
|
||||
0,
|
||||
ptattach,
|
||||
"Processor",
|
||||
ptopen,
|
||||
sizeof(struct scsi_data),
|
||||
@ -101,6 +101,15 @@ static struct scsi_device pt_switch =
|
||||
pt_strategy,
|
||||
};
|
||||
|
||||
static errval
|
||||
ptattach(struct scsi_link *sc_link)
|
||||
{
|
||||
struct scsi_data *pt = sc_link->sd;
|
||||
|
||||
TAILQ_INIT(&pt->buf_queue);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* ptstart looks to see if there is a buf waiting for the device
|
||||
* and that the device is not already busy. If both are true,
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* New configuration setup: dufault@hda.com
|
||||
*
|
||||
* $Id: scsiconf.c,v 1.85 1997/05/03 22:23:13 joerg Exp $
|
||||
* $Id: scsiconf.c,v 1.86 1997/05/19 17:32:07 jmz Exp $
|
||||
*/
|
||||
|
||||
#include "opt_scsi.h"
|
||||
@ -441,6 +441,10 @@ static struct scsidevs knowndevs[] =
|
||||
T_DIRECT, T_DIRECT, T_FIXED, "*", "*", "*",
|
||||
"sd", SC_ONE_LU
|
||||
},
|
||||
{
|
||||
T_DIRECT, T_DIRECT, T_REMOV, "*", "*", "*",
|
||||
"sd", SC_ONE_LU
|
||||
},
|
||||
#endif /* NSD */
|
||||
#if NST > 0
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user