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
  • drivers
  • block
  • null_blk
  • main.c
Find file BlameHistoryPermalink
  • Ming Lei's avatar
    block: null_blk: only set set->nr_maps as 3 if active poll_queues is > 0 · 19768f80
    Ming Lei authored Dec 24, 2021
    It isn't correct to set set->nr_maps as 3 if g_poll_queues is > 0 since
    we can change it via configfs for null_blk device created there, so only
    set it as 3 if active poll_queues is > 0.
    
    Fixes divide zero exception reported by Shinichiro.
    
    Fixes: 2bfdbe8b
    
     ("null_blk: allow zero poll queues")
    Reported-by: default avatarShinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
    Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
    Reviewed-by: default avatarShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
    Link: https://lore.kernel.org/r/20211224010831.1521805-1-ming.lei@redhat.com
    
    
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    19768f80
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7