[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210930052028.934747-1-ming.lei@redhat.com>
Date: Thu, 30 Sep 2021 13:20:26 +0800
From: Ming Lei <ming.lei@...hat.com>
To: linux-kernel@...r.kernel.org, linux-scsi@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Martin K . Petersen" <martin.petersen@...cle.com>
Cc: Changhui Zhong <czhong@...hat.com>, Yi Zhang <yi.zhang@...hat.com>,
Ming Lei <ming.lei@...hat.com>
Subject: [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(-)
--
2.31.1
Powered by blists - more mailing lists