Changeset 264 for ksyslog/trunk/ksyslog.c
- Timestamp:
- 10/16/13 02:04:40 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ksyslog/trunk/ksyslog.c
r263 r264 19 19 #include "ksyslog.h" 20 20 21 static DEFINE_SPINLOCK(ksyslog_vfs_lock);22 23 21 static struct ksyslog_queue ksyslog_queue; 24 22 static struct socket *ksyslog_rcv_sk = NULL; … … 100 98 goto out; 101 99 102 fsnotify_open(file->f_path.dentry);100 compat_fsnotify_open(file); 103 101 104 102 if (unlikely(S_ISDIR(file->f_path.dentry->d_inode->i_mode))) { … … 321 319 goto out; 322 320 323 spin_lock(&ksyslog_vfs_lock);324 325 321 file = ksyslog_open(ksyslog_path); 326 322 if (unlikely(IS_ERR(file))) { 327 spin_unlock(&ksyslog_vfs_lock);328 329 323 spin_lock_bh(&ksyslog_queue.lock); 330 324 ksyslog_entry_migrate(&write_queue, &ksyslog_queue); 331 325 spin_unlock_bh(&ksyslog_queue.lock); 332 333 326 goto out; 334 327 } … … 365 358 366 359 ksyslog_close(file); 367 spin_unlock(&ksyslog_vfs_lock);368 360 369 361 out:
Note: See TracChangeset
for help on using the changeset viewer.