Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • drivers
  • vfio
  • mdev
  • mdev_core.c
Find file BlameHistoryPermalink
  • Jason Gunthorpe's avatar
    vfio/mdev: Use the driver core to create the 'remove' file · 2aa72ec9
    Jason Gunthorpe authored Apr 11, 2022
    
    
    The device creator is supposed to use the dev.groups value to add sysfs
    files before device_add is called, not call sysfs_create_files() after
    device_add() returns. This creates a race with uevent delivery where the
    extra attribute will not be visible.
    
    This was being done because the groups had been co-opted by the mdev
    driver, now that prior patches have moved the driver's groups to the
    struct device_driver the dev.group is properly free for use here.
    
    Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarZhi Wang <zhi.a.wang@intel.com>
    Link: http://patchwork.freedesktop.org/patch/msgid/20220411141403.86980-34-hch@lst.de
    
    
    Reviewed-by: default avatarKirti Wankhede <kwankhede@nvidia.com>
    Reviewed-by: default avatarZhi Wang <zhi.a.wang@intel.com>
    2aa72ec9
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7