public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] close udev startup race condition for several devices
@ 2021-02-07 11:46 Jeffle Xu
  2021-02-07 11:46 ` [PATCH 1/3] virtio-blk: close udev startup race condition as default groups Jeffle Xu
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Jeffle Xu @ 2021-02-07 11:46 UTC (permalink / raw)
  To: gregkh, sashal; +Cc: stable, joseph.qi, caspar, Jeffle Xu

The upstream commit fef912bf860e8e7e48a2bfb978a356bba743a8b7 ("block:
genhd: add 'groups' argument to device_add_disk") and the following
patches fix a race condition of udev for several devices, including
nvme, aoe, zram and virtio.

The stable tree commit 9e07f4e243791e00a4086ad86e573705cf7b2c65("zram:
close udev startup race condition as default groups") only fixes zram,
leaving other devices unfixed.

This udev race issue indeed makes trouble. We recently found that this
issue can cause missing '/dev/disk/by-id/XXXX' symlink of virtio-blk
devices on 4.19.

Be noted that this patch set follows the idea of stable commit
9e07f4e243791e00a4086ad86e573705cf7b2c65 ("zram: close udev startup race
condition as default groups") of merging the preparation patch (commit
fef912bf860e) and the fixing patch (commit 98af4d4df889).

Jeffle Xu (3):
  virtio-blk: close udev startup race condition as default groups
  aoe: close udev startup race condition as default groups
  nvme: close udev startup race condition as default groups

 drivers/block/aoe/aoe.h       |   1 -
 drivers/block/aoe/aoeblk.c    |  20 +++----
 drivers/block/aoe/aoedev.c    |   1 -
 drivers/block/virtio_blk.c    |  67 +++++++++++++---------
 drivers/nvme/host/core.c      |  20 +++----
 drivers/nvme/host/lightnvm.c  | 105 ++++++++++++++--------------------
 drivers/nvme/host/multipath.c |  10 +---
 drivers/nvme/host/nvme.h      |  10 +---
 8 files changed, 103 insertions(+), 131 deletions(-)

-- 
2.27.0


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

end of thread, other threads:[~2021-02-18  2:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-07 11:46 [PATCH 0/3] close udev startup race condition for several devices Jeffle Xu
2021-02-07 11:46 ` [PATCH 1/3] virtio-blk: close udev startup race condition as default groups Jeffle Xu
2021-02-07 11:56   ` Greg KH
2021-02-07 22:46     ` Sasha Levin
2021-02-08  1:40     ` JeffleXu
2021-02-17 13:12       ` JeffleXu
2021-02-17 13:26         ` Greg KH
2021-02-18  2:23           ` JeffleXu
2021-02-07 11:46 ` [PATCH 2/3] aoe: " Jeffle Xu
2021-02-07 11:46 ` [PATCH 3/3] nvme: " Jeffle Xu
2021-02-07 11:52 ` [PATCH 0/3] close udev startup race condition for several devices JeffleXu

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