Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/cam.c
Show All 12 Lines | |||||
{ CAM_NO_NEXUS, "Nexus Not Established" }, | { CAM_NO_NEXUS, "Nexus Not Established" }, | ||||
{ CAM_IID_INVALID, "Invalid Initiator ID" }, | { CAM_IID_INVALID, "Invalid Initiator ID" }, | ||||
{ CAM_CDB_RECVD, "CDB Received" }, | { CAM_CDB_RECVD, "CDB Received" }, | ||||
{ CAM_LUN_ALRDY_ENA, "LUN Already Enabled for Target Mode" }, | { CAM_LUN_ALRDY_ENA, "LUN Already Enabled for Target Mode" }, | ||||
{ CAM_SCSI_BUSY, "SCSI Bus Busy" }, | { CAM_SCSI_BUSY, "SCSI Bus Busy" }, | ||||
}; | }; | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
SYSCTL_NODE(_kern, OID_AUTO, cam, CTLFLAG_RD, 0, "CAM Subsystem"); | SYSCTL_NODE(_kern, OID_AUTO, cam, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"CAM Subsystem"); | |||||
#ifndef CAM_DEFAULT_SORT_IO_QUEUES | #ifndef CAM_DEFAULT_SORT_IO_QUEUES | ||||
#define CAM_DEFAULT_SORT_IO_QUEUES 1 | #define CAM_DEFAULT_SORT_IO_QUEUES 1 | ||||
#endif | #endif | ||||
int cam_sort_io_queues = CAM_DEFAULT_SORT_IO_QUEUES; | int cam_sort_io_queues = CAM_DEFAULT_SORT_IO_QUEUES; | ||||
SYSCTL_INT(_kern_cam, OID_AUTO, sort_io_queues, CTLFLAG_RWTUN, | SYSCTL_INT(_kern_cam, OID_AUTO, sort_io_queues, CTLFLAG_RWTUN, | ||||
&cam_sort_io_queues, 0, "Sort IO queues to try and optimise disk access patterns"); | &cam_sort_io_queues, 0, "Sort IO queues to try and optimise disk access patterns"); | ||||
Show All 12 Lines |