Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eventfd: remove fput() call from possible IRQ context
Remove a source of fput() call from inside IRQ context. Myself, like Eric, wasn't able to reproduce an fput() call from IRQ context, but Jeff said he was able to, with the attached test program. Independently from this, the bug is conceptually there, so we might be better off fixing it. This patch adds an optimization similar to the one we already do on ->ki_filp, on ->ki_eventfd. Playing with ->f_count directly is not pretty in general, but the alternative here would be to add a brand new delayed fput() infrastructure, that I'm not sure is worth it. Signed-off-by: Davide Libenzi <[email protected]> Cc: Benjamin LaHaise <[email protected]> Cc: Trond Myklebust <[email protected]> Cc: Eric Dumazet <[email protected]> Signed-off-by: Jeff Moyer <[email protected]> Cc: Zach Brown <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information