Skip to content

SCSI: fix race between releasing shost and unloading LLD module

Ming Lei linux-scsi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2driver core: tell caller if the device/kboject is really releaseddrivers/base/core.c include/linux/device.h include/linux/kobject.h +1 more+8 -62 replies
2/2scsi: core: put LLD module refcnt after SCSI device is releaseddrivers/scsi/scsi.c drivers/scsi/scsi_sysfs.c include/scsi/scsi_device.h+21 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] SCSI: fix race between releasing shost and unloading LLD module

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(-)
Signature · 1 line
2.31.1