public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH-next v2 0/2] scsi, driver core: fix iscsi rescan fails to create block device
@ 2023-01-28  9:41 Zhong Jinghua
  2023-01-28  9:41 ` [PATCH-next v2 1/2] driver core: introduce get_device_unless_zero() Zhong Jinghua
  2023-01-28  9:41 ` [PATCH-next v2 2/2] scsi: fix iscsi rescan fails to create block device Zhong Jinghua
  0 siblings, 2 replies; 15+ messages in thread
From: Zhong Jinghua @ 2023-01-28  9:41 UTC (permalink / raw)
  To: gregkh, jejb, martin.petersen, hare, bvanassche, emilne
  Cc: linux-kernel, linux-scsi, zhongjinghua, yi.zhang, yukuai3

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


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

end of thread, other threads:[~2023-01-31  3:27 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-28  9:41 [PATCH-next v2 0/2] scsi, driver core: fix iscsi rescan fails to create block device Zhong Jinghua
2023-01-28  9:41 ` [PATCH-next v2 1/2] driver core: introduce get_device_unless_zero() Zhong Jinghua
2023-01-28 10:43   ` Greg KH
2023-01-28  9:41 ` [PATCH-next v2 2/2] scsi: fix iscsi rescan fails to create block device Zhong Jinghua
2023-01-28 10:45   ` Greg KH
2023-01-29  1:13     ` Yu Kuai
2023-01-29  6:46       ` Greg KH
2023-01-29  6:55         ` Yu Kuai
2023-01-29 17:30   ` James Bottomley
2023-01-30  3:07     ` Yu Kuai
2023-01-30  3:29       ` James Bottomley
2023-01-30  3:46         ` Yu Kuai
2023-01-30 13:17           ` James Bottomley
2023-01-31  1:43             ` Yu Kuai
2023-01-31  3:25               ` James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox