[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230128094146.205858-1-zhongjinghua@huawei.com>
Date: Sat, 28 Jan 2023 17:41:44 +0800
From: Zhong Jinghua <zhongjinghua@...wei.com>
To: <gregkh@...uxfoundation.org>, <jejb@...ux.ibm.com>,
<martin.petersen@...cle.com>, <hare@...e.de>, <bvanassche@....org>,
<emilne@...hat.com>
CC: <linux-kernel@...r.kernel.org>, <linux-scsi@...r.kernel.org>,
<zhongjinghua@...wei.com>, <yi.zhang@...wei.com>,
<yukuai3@...wei.com>
Subject: [PATCH-next v2 0/2] scsi, driver core: fix iscsi rescan fails to create block device
v1->v2: add a new patch that introduces get_device_unless_zero() method.
Hello, This patchset introduces get_device_unless_zero() method, Avoid
dev's reference count from 0 to 1, as this will cause bugs in some parts
of the kernel.
We used this method when we fixed an issue with iSCSI delete order.
Zhong Jinghua (2):
driver core: introduce get_device_unless_zero()
scsi: fix iscsi rescan fails to create block device
drivers/base/core.c | 8 ++++++++
drivers/scsi/scsi_sysfs.c | 4 +---
include/linux/device.h | 1 +
3 files changed, 10 insertions(+), 3 deletions(-)
--
2.31.1
Powered by blists - more mailing lists