summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ipcp.c
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>1997-06-25 19:07:43 +0000
committertegge <tegge@FreeBSD.org>1997-06-25 19:07:43 +0000
commit988f978710326fc294e3ebe6b7231a5b2807c6f8 (patch)
treeab7e9ccf1be3e96bf94b4abd5d5faf132b743dd1 /usr.sbin/ppp/ipcp.c
parent228f6410f312edf048c05ed76a7d84d3d954a339 (diff)
downloadFreeBSD-src-988f978710326fc294e3ebe6b7231a5b2807c6f8.zip
FreeBSD-src-988f978710326fc294e3ebe6b7231a5b2807c6f8.tar.gz
Introduce an advisory exclusive lock on the scsi link structure.
Change sd_open, sd_close and sd_ioctl to use this lock to ensure serialization of some critical operations, thus avoiding some race conditions. Ideas picked from NetBSD (ccd and sd devices). This fixes one of the problems noted in PR kern/3688. Reviewed by: "Justin T. Gibbs" <gibbs@plutotech.com>
Diffstat (limited to 'usr.sbin/ppp/ipcp.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud