Catch up with netsmb locking: explicit thread arguments no longer required.
This commit is contained in:
parent
4de0ed8a13
commit
bd5c63c83e
@ -173,7 +173,7 @@ smbfs_mount(struct mount *mp, struct thread *td)
|
||||
return error;
|
||||
}
|
||||
vcp = SSTOVC(ssp);
|
||||
smb_share_unlock(ssp, 0, td);
|
||||
smb_share_unlock(ssp, 0);
|
||||
mp->mnt_stat.f_iosize = SSTOVC(ssp)->vc_txmax;
|
||||
|
||||
#ifdef SMBFS_USEZONE
|
||||
@ -305,7 +305,7 @@ smbfs_unmount(struct mount *mp, int mntflags, struct thread *td)
|
||||
if (error)
|
||||
return error;
|
||||
smb_makescred(&scred, td, td->td_ucred);
|
||||
error = smb_share_lock(smp->sm_share, LK_EXCLUSIVE, td);
|
||||
error = smb_share_lock(smp->sm_share, LK_EXCLUSIVE);
|
||||
if (error)
|
||||
return error;
|
||||
smb_share_put(smp->sm_share, &scred);
|
||||
|
@ -204,7 +204,7 @@ nsmb_dev_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thre
|
||||
if (error)
|
||||
break;
|
||||
sdp->sd_vc = vcp;
|
||||
smb_vc_unlock(vcp, 0, td);
|
||||
smb_vc_unlock(vcp, 0);
|
||||
sdp->sd_level = SMBL_VC;
|
||||
break;
|
||||
case SMBIOC_OPENSHARE:
|
||||
@ -217,7 +217,7 @@ nsmb_dev_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thre
|
||||
if (error)
|
||||
break;
|
||||
sdp->sd_share = ssp;
|
||||
smb_share_unlock(ssp, 0, td);
|
||||
smb_share_unlock(ssp, 0);
|
||||
sdp->sd_level = SMBL_SHARE;
|
||||
break;
|
||||
case SMBIOC_REQUEST:
|
||||
@ -287,12 +287,12 @@ nsmb_dev_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thre
|
||||
break;
|
||||
if (vcp) {
|
||||
sdp->sd_vc = vcp;
|
||||
smb_vc_unlock(vcp, 0, td);
|
||||
smb_vc_unlock(vcp, 0);
|
||||
sdp->sd_level = SMBL_VC;
|
||||
}
|
||||
if (ssp) {
|
||||
sdp->sd_share = ssp;
|
||||
smb_share_unlock(ssp, 0, td);
|
||||
smb_share_unlock(ssp, 0);
|
||||
sdp->sd_level = SMBL_SHARE;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user