All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] SCSI: fix race between releasing shost and unloading LLD module
@ 2021-09-30  5:20 Ming Lei
  2021-09-30  5:20 ` [PATCH 1/2] driver core: tell caller if the device/kboject is really released Ming Lei
  2021-09-30  5:20 ` [PATCH 2/2] scsi: core: put LLD module refcnt after SCSI device is released Ming Lei
  0 siblings, 2 replies; 6+ messages in thread
From: Ming Lei @ 2021-09-30  5:20 UTC (permalink / raw)
  To: linux-kernel, linux-scsi, Greg Kroah-Hartman, Martin K . Petersen
  Cc: Changhui Zhong, Yi Zhang, Ming Lei

Hello,

Patch 1 allows put_device() to return if the device is really released.

Patch 2 fixes one race between releasing shost and unloading LLD module
by making sure that LLD module refcnt is dropped after the scsi device
is released.

Fix the kernel panic of 'BUG: unable to handle page fault for address'
reported by Changhui and Yi.


Ming Lei (2):
  driver core: tell caller if the device/kboject is really released
  scsi: core: put LLD module refcnt after SCSI device is released

 drivers/base/core.c        |  5 +++--
 drivers/scsi/scsi.c        | 14 ++++++++++++--
 drivers/scsi/scsi_sysfs.c  |  8 ++++++++
 include/linux/device.h     |  2 +-
 include/linux/kobject.h    |  2 +-
 include/scsi/scsi_device.h |  1 +
 lib/kobject.c              |  5 +++--
 7 files changed, 29 insertions(+), 8 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-09-30  7:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-30  5:20 [PATCH 0/2] SCSI: fix race between releasing shost and unloading LLD module Ming Lei
2021-09-30  5:20 ` [PATCH 1/2] driver core: tell caller if the device/kboject is really released Ming Lei
2021-09-30  5:51   ` Greg Kroah-Hartman
2021-09-30  7:22     ` Ming Lei
2021-09-30  5:20 ` [PATCH 2/2] scsi: core: put LLD module refcnt after SCSI device is released Ming Lei
2021-09-30  5:57   ` Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.