android_kernel_xiaomi_sm8350/drivers/edac
Dave Peterson 472678ebd3 [PATCH] EDAC: kobject/sysfs fixes
- After we unregister a kobject, wait for our kobject release method
  to call complete().  This causes us to wait until the kobject
  reference count reaches 0.  Otherwise, a task accessing the EDAC
  sysfs interface can hold the reference count above 0 until after the
  EDAC module has been unloaded.  When the reference count finally
  drops to 0, this will result in an attempt to call our release
  method inside the EDAC module after the module has already been
  unloaded.

  This isn't the best fix, since a process can get stuck sleeping forever
  uninterruptibly if the user does the following:

      rmmod my_module < /sys/my_sysfs/file

  I'll go back and implement a better fix later.  However this should
  be ok for now.

- Call edac_remove_sysfs_mci_device() from edac_mc_del_mc() rather
  than from edac_mc_free().  Since edac_mc_add_mc() calls
  edac_create_sysfs_mci_device(), edac_mc_del_mc() should call
  edac_remove_sysfs_mci_device().

Signed-off-by: David S. Peterson <dsp@llnl.gov>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-26 08:57:07 -08:00
..
amd76x_edac.c [PATCH] EDAC: cleanup code for clearing initial errors 2006-03-26 08:57:07 -08:00
e7xxx_edac.c [PATCH] EDAC: cleanup code for clearing initial errors 2006-03-26 08:57:07 -08:00
e752x_edac.c [PATCH] EDAC: cleanup code for clearing initial errors 2006-03-26 08:57:07 -08:00
edac_mc.c [PATCH] EDAC: kobject/sysfs fixes 2006-03-26 08:57:07 -08:00
edac_mc.h [PATCH] EDAC: kobject/sysfs fixes 2006-03-26 08:57:07 -08:00
i82860_edac.c [PATCH] EDAC: cleanup code for clearing initial errors 2006-03-26 08:57:07 -08:00
i82875p_edac.c [PATCH] EDAC: cleanup code for clearing initial errors 2006-03-26 08:57:07 -08:00
Kconfig [PATCH] edac: mark as experimental 2006-03-09 19:47:38 -08:00
Makefile [PATCH] EDAC: core EDAC support code 2006-01-18 19:20:31 -08:00
r82600_edac.c [PATCH] EDAC: cleanup code for clearing initial errors 2006-03-26 08:57:07 -08:00