saner FASYNC handling on file close
As it is, all instances of ->release() for files that have ->fasync() need to remember to evict file from fasync lists; forgetting that creates a hole and we actually have a bunch that *does* forget. So let's keep our lives simple - let __fput() check FASYNC in file->f_flags and call ->fasync() there if it's been set. And lose that crap in ->release() instances - leaving it there is still valid, but we don't have to bother anymore. Signed-off-by:Al Viro <viro@zeniv.linux.org.uk> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/ia64/kernel/perfmon.c 0 additions, 5 deletionsarch/ia64/kernel/perfmon.c
- drivers/char/hpet.c 0 additions, 3 deletionsdrivers/char/hpet.c
- drivers/char/ipmi/ipmi_devintf.c 0 additions, 2 deletionsdrivers/char/ipmi/ipmi_devintf.c
- drivers/char/ipmi/ipmi_watchdog.c 0 additions, 1 deletiondrivers/char/ipmi/ipmi_watchdog.c
- drivers/char/random.c 0 additions, 7 deletionsdrivers/char/random.c
- drivers/char/rtc.c 0 additions, 2 deletionsdrivers/char/rtc.c
- drivers/char/sonypi.c 0 additions, 1 deletiondrivers/char/sonypi.c
- drivers/gpu/drm/drm_fops.c 0 additions, 2 deletionsdrivers/gpu/drm/drm_fops.c
- drivers/hid/usbhid/hiddev.c 0 additions, 2 deletionsdrivers/hid/usbhid/hiddev.c
- drivers/ieee1394/dv1394.c 0 additions, 3 deletionsdrivers/ieee1394/dv1394.c
- drivers/infiniband/core/uverbs_main.c 0 additions, 2 deletionsdrivers/infiniband/core/uverbs_main.c
- drivers/input/evdev.c 0 additions, 1 deletiondrivers/input/evdev.c
- drivers/input/joydev.c 0 additions, 1 deletiondrivers/input/joydev.c
- drivers/input/misc/hp_sdc_rtc.c 0 additions, 13 deletionsdrivers/input/misc/hp_sdc_rtc.c
- drivers/input/mousedev.c 0 additions, 1 deletiondrivers/input/mousedev.c
- drivers/input/serio/serio_raw.c 0 additions, 1 deletiondrivers/input/serio/serio_raw.c
- drivers/message/fusion/mptctl.c 0 additions, 7 deletionsdrivers/message/fusion/mptctl.c
- drivers/message/i2o/i2o_config.c 5 additions, 16 deletionsdrivers/message/i2o/i2o_config.c
- drivers/misc/sony-laptop.c 0 additions, 1 deletiondrivers/misc/sony-laptop.c
- drivers/net/tun.c 0 additions, 2 deletionsdrivers/net/tun.c
Loading
Please register or sign in to comment