[GIT PULL] fasync fix for v4.18
From: Jeff Layton
Date: Mon Jun 04 2018 - 09:28:26 EST
The following changes since commit fff75eb2a08c2ac96404a2d79685668f3cf5a7a3:
Merge tag 'errseq-v4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux (2018-04-30 16:53:40 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git tags/locks-v4.18-1
for you to fetch changes up to 7a107c0f55a3b4c6f84a4323df5610360bde1684:
fasync: Fix deadlock between task-context and interrupt-context kill_fasync() (2018-05-01 07:39:50 -0400)
----------------------------------------------------------------
Just a single fix for a deadlock in the fasync handling code that Kirill
observed while testing. The fix is to change the fa_lock to be rwlock_t,
and use a read lock in kill_fasync_rcu.
----------------------------------------------------------------
Kirill Tkhai (1):
fasync: Fix deadlock between task-context and interrupt-context kill_fasync()
fs/fcntl.c | 15 +++++++--------
include/linux/fs.h | 2 +-
2 files changed, 8 insertions(+), 9 deletions(-)
--
Jeff Layton <jlayton@xxxxxxxxxx>