Find the answer to your Linux question:
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.
  1. #1
    Just 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

  2. #2
    Just 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

Posting Permissions

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