mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 05:43:59 +00:00
Changed interrupt level to splcam() because of the bs driver is CAM driver.
Pointed out: MITSUNAGA Noriaki <mitchy@er.ams.eng.osaka-u.ac.jp>
This commit is contained in:
parent
0d484d4793
commit
5844ed9ed1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59490
|
@ -26,6 +26,8 @@
|
|||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
*/
|
||||
/*
|
||||
* Common command control queue funcs.
|
||||
|
@ -71,7 +73,7 @@ struct CCBTYPE * \
|
|||
DEV##_get_ccb() \
|
||||
{ \
|
||||
register struct CCBTYPE *cb; \
|
||||
int s = splbio(); \
|
||||
int s = splcam(); \
|
||||
\
|
||||
again: \
|
||||
if (CCBTYPE##que.count < CCBTYPE##que.maxccb) \
|
||||
|
@ -106,7 +108,7 @@ void \
|
|||
DEV##_free_ccb(cb) \
|
||||
register struct CCBTYPE *cb; \
|
||||
{ \
|
||||
int s = splbio(); \
|
||||
int s = splcam(); \
|
||||
\
|
||||
TAILQ_INSERT_TAIL(&CCBTYPE##que.CCBTYPE##tab, cb, CHAIN); \
|
||||
CCBTYPE##que.count --; \
|
||||
|
|
Loading…
Reference in a new issue