Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • I ipipe-arm64
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Analytics
    • Analytics
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomaixenomai
  • ipipe-arm64
  • Repository
  • ipipe-arm64
  • block
  • blk-mq.c
Find file Blame History Permalink
  • Jens Axboe's avatar
    blk-mq: update hardware and software queues for sleeping alloc · 7dd2fb68
    Jens Axboe authored Oct 27, 2016
    
    
    If we end up sleeping due to running out of requests, we should
    update the hardware and software queues in the map ctx structure.
    Otherwise we could end up having rq->mq_ctx point to the pre-sleep
    context, and risk corrupting ctx->rq_list since we'll be
    grabbing the wrong lock when inserting the request.
    
    Reported-by: default avatarDave Jones <davej@codemonkey.org.uk>
    Reported-by: default avatarChris Mason <clm@fb.com>
    Tested-by: default avatarChris Mason <clm@fb.com>
    Fixes: 63581af3
    
     ("blk-mq: remove non-blocking pass in blk_mq_map_request")
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    7dd2fb68

Imprint & Privacy Policy