diff options
Diffstat (limited to 'libdiskfs/file-getcontrol.c')
-rw-r--r-- | libdiskfs/file-getcontrol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/file-getcontrol.c b/libdiskfs/file-getcontrol.c index 23afb7cb..fc6f777e 100644 --- a/libdiskfs/file-getcontrol.c +++ b/libdiskfs/file-getcontrol.c @@ -40,9 +40,9 @@ diskfs_S_file_getcontrol (struct protid *cred, if (error) return error; - spin_lock (&_diskfs_control_lock); + pthread_spin_lock (&_diskfs_control_lock); _diskfs_ncontrol_ports++; - spin_unlock (&_diskfs_control_lock); + pthread_spin_unlock (&_diskfs_control_lock); *control = ports_get_right (newpi); *controltype = MACH_MSG_TYPE_MAKE_SEND; ports_port_deref (newpi); |