diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-11-19 02:18:03 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-11-19 02:18:03 +0000 |
commit | 4e00bfe9e4fce563a74dcd487149539b6bc02ba9 (patch) | |
tree | a134970c4687287588758bb78c439e9cde819bb9 /sys/dev/isa | |
parent | 16017b33d1fad6b6fd295f39b365b33719b42ae9 (diff) |
Remove unnecessary lockmgr() archaism that was costing too much in terms
of panics and bugfixes. Access curproc directly, do not expect a process
pointer as an argument. Should fix many "process context required" bugs.
Incentive and okay millert@, okay marc@. Various testing, thanks.
Diffstat (limited to 'sys/dev/isa')
-rw-r--r-- | sys/dev/isa/gscsio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isa/gscsio.c b/sys/dev/isa/gscsio.c index 7ce7a91b1bb..7fd258dd445 100644 --- a/sys/dev/isa/gscsio.c +++ b/sys/dev/isa/gscsio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gscsio.c,v 1.3 2004/11/17 16:53:05 mickey Exp $ */ +/* $OpenBSD: gscsio.c,v 1.4 2005/11/19 02:18:00 pedro Exp $ */ /* * Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org> * @@ -320,7 +320,7 @@ gscsio_acb_acquire_bus(void *cookie, int flags) if (flags & I2C_F_POLL) return (0); - return (lockmgr(&acb->buslock, LK_EXCLUSIVE, NULL, curproc)); + return (lockmgr(&acb->buslock, LK_EXCLUSIVE, NULL)); } void @@ -331,7 +331,7 @@ gscsio_acb_release_bus(void *cookie, int flags) if (flags & I2C_F_POLL) return; - lockmgr(&acb->buslock, LK_RELEASE, NULL, curproc); + lockmgr(&acb->buslock, LK_RELEASE, NULL); } int |