Use local wrappers instead of direct calls to mtx_destroy().

Obtained from:	Mac OS X
MFC after:		1 week
This commit is contained in:
Boris Popov 2001-08-21 09:10:23 +00:00
parent 6d3d1a8100
commit e7681448e7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82045

View File

@ -87,7 +87,7 @@ smb_iod_invrq(struct smbiod *iod)
struct smb_rq *rqp;
/*
* Invalidate all outstanding requests for this connection
* Invalidate all outstanding requests for this connection
*/
SMB_IOD_RQLOCK(iod);
TAILQ_FOREACH(rqp, &iod->iod_rqlist, sr_link) {
@ -689,8 +689,8 @@ int
smb_iod_destroy(struct smbiod *iod)
{
smb_iod_request(iod, SMBIOD_EV_SHUTDOWN | SMBIOD_EV_SYNC, NULL);
mtx_destroy(&iod->iod_rqlock);
mtx_destroy(&iod->iod_evlock);
smb_sl_destroy(&iod->iod_rqlock);
smb_sl_destroy(&iod->iod_evlock);
free(iod, M_SMBIOD);
return 0;
}