ClangBuiltLinux / thread-safety-analysis

A research project into applying Clang's Thread Safety Analysis to the Linux Kernel
Other
6 stars 0 forks source link

fs/dcache.c: conditional unlocking in d_splice_alias #132

Open himanshujha199640 opened 5 years ago

himanshujha199640 commented 5 years ago
/home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2981:2: warning: mutex '->i_lock' is not held on every path through here [-Wthread-safety-analysis]
        __d_add(dentry, inode);
        ^
/home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2946:2: note: mutex acquired here
        spin_lock(&inode->i_lock);
        ^