Hi Martin, For certain user space software, e.g. udev, it is important that sysfs attributes are registered before the KOBJ_ADD uevent is emitted. Hence this patch series that removes the device_create_file() and sysfs_create_groups() calls from the SCSI core. Please consider this patch series for kernel v5.16. Thanks, Bart. Bart Van Assche (2): scsi: Register SCSI host sysfs attributes earlier scsi: Register SCSI device sysfs attributes earlier drivers/ata/ahci.h | 4 +- drivers/ata/ata_piix.c | 4 +- drivers/ata/libahci.c | 30 +-- drivers/ata/libata-sata.c | 8 +- drivers/ata/libata-scsi.c | 4 +- drivers/firewire/sbp2.c | 4 +- drivers/infiniband/ulp/srp/ib_srp.c | 44 ++-- drivers/message/fusion/mptscsih.c | 26 +- drivers/message/fusion/mptscsih.h | 2 +- drivers/s390/scsi/zfcp_ext.h | 4 +- drivers/s390/scsi/zfcp_sysfs.c | 34 +-- drivers/scsi/3w-9xxx.c | 4 +- drivers/scsi/3w-sas.c | 4 +- drivers/scsi/3w-xxxx.c | 4 +- drivers/scsi/aacraid/linit.c | 30 +-- drivers/scsi/arcmsr/arcmsr.h | 2 +- drivers/scsi/arcmsr/arcmsr_attr.c | 24 +- drivers/scsi/be2iscsi/be_main.c | 17 +- drivers/scsi/bfa/bfad_attr.c | 52 ++-- drivers/scsi/bfa/bfad_im.h | 4 +- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 4 +- drivers/scsi/bnx2i/bnx2i.h | 2 +- drivers/scsi/bnx2i/bnx2i_sysfs.c | 6 +- drivers/scsi/csiostor/csio_scsi.c | 16 +- drivers/scsi/cxlflash/main.c | 32 +-- drivers/scsi/fnic/fnic.h | 2 +- drivers/scsi/fnic/fnic_attrs.c | 8 +- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 4 +- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 4 +- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 10 +- drivers/scsi/hosts.c | 10 +- drivers/scsi/hpsa.c | 36 +-- drivers/scsi/hptiop.c | 6 +- drivers/scsi/ibmvscsi/ibmvfc.c | 18 +- drivers/scsi/ibmvscsi/ibmvscsi.c | 18 +- drivers/scsi/ipr.c | 30 +-- drivers/scsi/isci/init.c | 4 +- drivers/scsi/lpfc/lpfc_attr.c | 296 +++++++++++----------- drivers/scsi/lpfc/lpfc_crtn.h | 4 +- drivers/scsi/megaraid/megaraid_mbox.c | 8 +- drivers/scsi/megaraid/megaraid_sas_base.c | 20 +- drivers/scsi/mpt3sas/mpt3sas_base.h | 4 +- drivers/scsi/mpt3sas/mpt3sas_ctl.c | 66 ++--- drivers/scsi/mvsas/mv_init.c | 8 +- drivers/scsi/myrb.c | 20 +- drivers/scsi/myrs.c | 32 +-- drivers/scsi/ncr53c8xx.c | 4 +- drivers/scsi/pcmcia/sym53c500_cs.c | 4 +- drivers/scsi/pm8001/pm8001_ctl.c | 56 ++-- drivers/scsi/pm8001/pm8001_sas.h | 2 +- drivers/scsi/pmcraid.c | 8 +- drivers/scsi/qedf/qedf.h | 2 +- drivers/scsi/qedf/qedf_attr.c | 6 +- drivers/scsi/qedi/qedi_gbl.h | 2 +- drivers/scsi/qedi/qedi_sysfs.c | 6 +- drivers/scsi/qla2xxx/qla_attr.c | 98 +++---- drivers/scsi/qla2xxx/qla_gbl.h | 3 +- drivers/scsi/qla4xxx/ql4_attr.c | 32 +-- drivers/scsi/qla4xxx/ql4_glbl.h | 2 +- drivers/scsi/scsi_priv.h | 2 +- drivers/scsi/scsi_sysfs.c | 60 ++--- drivers/scsi/smartpqi/smartpqi_init.c | 38 +-- drivers/scsi/snic/snic.h | 2 +- drivers/scsi/snic/snic_attrs.c | 10 +- drivers/usb/storage/scsiglue.c | 4 +- include/linux/libata.h | 4 +- include/scsi/scsi_device.h | 2 + include/scsi/scsi_host.h | 6 +- 68 files changed, 660 insertions(+), 666 deletions(-)