sema-init-takes-2-args-20050415
authorChas Williams <chas@cmf.nrl.navy.mil>
Fri, 15 Apr 2005 14:40:31 +0000 (14:40 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 15 Apr 2005 14:40:31 +0000 (14:40 +0000)
FIXES 18271

init sema correctly

src/afs/afs_vcache.c

index d3167fa..b3d2850 100644 (file)
@@ -936,7 +936,7 @@ restart:
 #if defined(STRUCT_INODE_HAS_INOTIFY_LOCK) || defined(STRUCT_INODE_HAS_INOTIFY_SEM)
        INIT_LIST_HEAD(&ip->inotify_watches); 
 #if defined(STRUCT_INODE_HAS_INOTIFY_SEM) 
-       sema_init(&ip->inotify_sem); 
+       sema_init(&ip->inotify_sem, 1); 
 #else
        spin_lock_init(&ip->inotify_lock); 
 #endif