Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Problem with get_empty_filp!


    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?


  2. #2

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts