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
  • linux
  • block
  • bdev.c
Find file BlameHistoryPermalink
  • Ming Lei's avatar
    block: sync part's ->bd_has_submit_bio with disk's · 38c8e3df
    Ming Lei authored Apr 25, 2023
    
    
    submit_bio() always uses bio->bi_bdev->bd_has_submit_bio to decide if
    disk's ->submit_bio() is called, and bio->bi_bdev could point to one
    partition device.
    
    So we have to sync part bdev's ->bd_has_submit_bio with disk's.
    
    Reported-by: default avatarChanghui Zhong <czhong@redhat.com>
    Link: https://lore.kernel.org/linux-block/ZEdItaPqif8fp85H@ovpn-8-24.pek2.redhat.com/T/#t
    Fixes: 9f4107b0
    
     ("block: store bdev->bd_disk->fops->submit_bio state in bdev")
    Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
    Link: https://lore.kernel.org/r/20230425034154.110099-1-ming.lei@redhat.com
    
    
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    38c8e3df
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7