Results 1 to 2 of 2
Hi,
In my file system filter I'm observing that get_empty_filp is behaving not the way it is meant to work. In multi-threaded environment I see that for two threads in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-07-2012 #1Just Joined!
- Join Date
- Feb 2012
- Posts
- 2
Problem with get_empty_filp!
Hi,
In my file system filter I'm observing that get_empty_filp is behaving not the way it is meant to work. In multi-threaded environment I see that for two threads in in dentry_open() it returns same struct file* and which later results in a crash when one thread calls fput() on this file.
Can somebody help me understand how dentry_open() or get_empty_filp works in multi-threaded environment?
regards
naresh
- 02-08-2012 #2Just Joined!
- Join Date
- Feb 2012
- Posts
- 2
Hi,
I figured out the problem. This was a silly mistake of sync between threads and I thought that file pointer returned by dentry_open() has some problem.
regards



