linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fix md disk_name lifetime problems
@ 2022-07-12  7:03 Christoph Hellwig
  2022-07-12  7:03 ` [PATCH 1/8] md: fix kobject_add error handling Christoph Hellwig
                   ` (8 more replies)
  0 siblings, 9 replies; 13+ messages in thread
From: Christoph Hellwig @ 2022-07-12  7:03 UTC (permalink / raw)
  To: Song Liu; +Cc: Logan Gunthorpe, linux-raid, linux-block

Hi all,

this series tries to fix a problem repored by Logan where we see
duplicate sysfs file name in md.  It is due to the fact that the
md driver only checks for duplicates on currently live mddevs,
while the sysfs name can live on longer.  It is an old problem,
but the race window got longer due to waiting for the device freeze
earlier in del_gendisk.

Note that I still can't reproduce this problem so this was based
on code inspection.  Also note that I occasionally run into a hang
in the 07layouts tests with or without this series.

Diffstat:
 md.c |  272 +++++++++++++++++++++++++++++++++----------------------------------
 md.h |    1 
 2 files changed, 139 insertions(+), 134 deletions(-)

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

end of thread, other threads:[~2022-07-13 15:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-12  7:03 fix md disk_name lifetime problems Christoph Hellwig
2022-07-12  7:03 ` [PATCH 1/8] md: fix kobject_add error handling Christoph Hellwig
2022-07-12  7:03 ` [PATCH 2/8] md: implement ->free_disk Christoph Hellwig
2022-07-12 23:13   ` Logan Gunthorpe
2022-07-13  7:17     ` Christoph Hellwig
2022-07-13 15:30       ` Logan Gunthorpe
2022-07-12  7:03 ` [PATCH 3/8] md: factor out the rdev overlaps check from rdev_size_store Christoph Hellwig
2022-07-12  7:03 ` [PATCH 4/8] md: stop using for_each_mddev in md_do_sync Christoph Hellwig
2022-07-12  7:03 ` [PATCH 5/8] md: stop using for_each_mddev in md_notify_reboot Christoph Hellwig
2022-07-12  7:03 ` [PATCH 6/8] md: stop using for_each_mddev in md_exit Christoph Hellwig
2022-07-12  7:03 ` [PATCH 7/8] md: only delete entries from all_mddevs when the disk is freed Christoph Hellwig
2022-07-12  7:03 ` [PATCH 8/8] md: simplify md_open Christoph Hellwig
2022-07-12 23:21 ` fix md disk_name lifetime problems Logan Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).