mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 21:47:45 +00:00
sema-init-takes-2-args-20050415
FIXES 18271 init sema correctly
This commit is contained in:
parent
b086690fbb
commit
671b02194a
@ -936,7 +936,7 @@ restart:
|
|||||||
#if defined(STRUCT_INODE_HAS_INOTIFY_LOCK) || defined(STRUCT_INODE_HAS_INOTIFY_SEM)
|
#if defined(STRUCT_INODE_HAS_INOTIFY_LOCK) || defined(STRUCT_INODE_HAS_INOTIFY_SEM)
|
||||||
INIT_LIST_HEAD(&ip->inotify_watches);
|
INIT_LIST_HEAD(&ip->inotify_watches);
|
||||||
#if defined(STRUCT_INODE_HAS_INOTIFY_SEM)
|
#if defined(STRUCT_INODE_HAS_INOTIFY_SEM)
|
||||||
sema_init(&ip->inotify_sem);
|
sema_init(&ip->inotify_sem, 1);
|
||||||
#else
|
#else
|
||||||
spin_lock_init(&ip->inotify_lock);
|
spin_lock_init(&ip->inotify_lock);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user