/block/ |
D | disk-events.c | 13 spinlock_t lock; member 88 spin_lock_irqsave(&ev->lock, flags); in disk_block_events() 90 spin_unlock_irqrestore(&ev->lock, flags); in disk_block_events() 104 spin_lock_irqsave(&ev->lock, flags); in __disk_unblock_events() 120 spin_unlock_irqrestore(&ev->lock, flags); in __disk_unblock_events() 158 spin_lock_irq(&ev->lock); in disk_flush_events() 163 spin_unlock_irq(&ev->lock); in disk_flush_events() 196 spin_lock_irq(&ev->lock); in disk_check_events() 207 spin_unlock_irq(&ev->lock); in disk_check_events() 243 spin_lock_irq(&ev->lock); in disk_clear_events() [all …]
|
D | blk-ioc.c | 63 spin_lock_irq(&ioc->lock); in ioc_exit_icqs() 66 spin_unlock_irq(&ioc->lock); in ioc_exit_icqs() 79 lockdep_assert_held(&ioc->lock); in ioc_destroy_icq() 116 spin_lock_irq(&ioc->lock); in ioc_release_fn() 131 spin_unlock(&ioc->lock); in ioc_release_fn() 133 spin_lock(&ioc->lock); in ioc_release_fn() 142 spin_unlock_irq(&ioc->lock); in ioc_release_fn() 155 spin_lock_irqsave(&ioc->lock, flags); in ioc_delay_free() 158 spin_unlock_irqrestore(&ioc->lock, flags); in ioc_delay_free() 161 spin_unlock_irqrestore(&ioc->lock, flags); in ioc_delay_free() [all …]
|
D | blk-stat.c | 17 spinlock_t lock; member 151 spin_lock_irqsave(&q->stats->lock, flags); in blk_stat_add_callback() 154 spin_unlock_irqrestore(&q->stats->lock, flags); in blk_stat_add_callback() 162 spin_lock_irqsave(&q->stats->lock, flags); in blk_stat_remove_callback() 166 spin_unlock_irqrestore(&q->stats->lock, flags); in blk_stat_remove_callback() 191 spin_lock_irqsave(&q->stats->lock, flags); in blk_stat_disable_accounting() 194 spin_unlock_irqrestore(&q->stats->lock, flags); in blk_stat_disable_accounting() 202 spin_lock_irqsave(&q->stats->lock, flags); in blk_stat_enable_accounting() 205 spin_unlock_irqrestore(&q->stats->lock, flags); in blk_stat_enable_accounting() 218 spin_lock_init(&stats->lock); in blk_alloc_queue_stats()
|
D | mq-deadline.c | 106 spinlock_t lock; member 227 lockdep_assert_held(&dd->lock); in dd_merged_requests() 271 lockdep_assert_held(&dd->lock); in dd_queued() 432 lockdep_assert_held(&dd->lock); in __dd_dispatch_request() 547 lockdep_assert_held(&dd->lock); in dd_dispatch_prio_aged_requests() 579 spin_lock(&dd->lock); in dd_dispatch_request() 595 spin_unlock(&dd->lock); in dd_dispatch_request() 652 spin_lock(&dd->lock); in dd_exit_sched() 654 spin_unlock(&dd->lock); in dd_exit_sched() 701 spin_lock_init(&dd->lock); in dd_init_sched() [all …]
|
D | blk-iocost.c | 418 spinlock_t lock; member 734 spin_lock_irqsave(&iocg->ioc->lock, *flags); in iocg_lock() 735 spin_lock(&iocg->waitq.lock); in iocg_lock() 737 spin_lock_irqsave(&iocg->waitq.lock, *flags); in iocg_lock() 744 spin_unlock(&iocg->waitq.lock); in iocg_unlock() 745 spin_unlock_irqrestore(&iocg->ioc->lock, *flags); in iocg_unlock() 747 spin_unlock_irqrestore(&iocg->waitq.lock, *flags); in iocg_unlock() 770 lockdep_assert_held(&ioc->lock); in ioc_refresh_period_us() 910 lockdep_assert_held(&ioc->lock); in ioc_refresh_params() 954 lockdep_assert_held(&ioc->lock); in ioc_refresh_vrate() [all …]
|
D | badblocks.c | 72 seq = read_seqbegin(&bb->lock); in badblocks_check() 120 if (read_seqretry(&bb->lock, seq)) in badblocks_check() 184 write_seqlock_irqsave(&bb->lock, flags); in badblocks_set() 310 write_sequnlock_irqrestore(&bb->lock, flags); in badblocks_set() 349 write_seqlock_irq(&bb->lock); in badblocks_clear() 419 write_sequnlock_irq(&bb->lock); in badblocks_clear() 436 write_seqlock_irq(&bb->lock); in ack_all_badblocks() 452 write_sequnlock_irq(&bb->lock); in ack_all_badblocks() 476 seq = read_seqbegin(&bb->lock); in badblocks_show() 498 if (read_seqretry(&bb->lock, seq)) in badblocks_show() [all …]
|
D | kyber-iosched.c | 148 spinlock_t lock; member 184 spinlock_t lock; member 450 spin_lock_init(&kcq->lock); in kyber_ctx_queue_init() 494 spin_lock_init(&khd->lock); in kyber_init_hctx() 580 spin_lock(&kcq->lock); in kyber_bio_merge() 582 spin_unlock(&kcq->lock); in kyber_bio_merge() 603 spin_lock(&kcq->lock); in kyber_insert_requests() 611 spin_unlock(&kcq->lock); in kyber_insert_requests() 673 spin_lock(&kcq->lock); in flush_busy_kcq() 677 spin_unlock(&kcq->lock); in flush_busy_kcq() [all …]
|
D | blk-crypto-profile.c | 54 down_write(&profile->lock); in blk_crypto_hw_enter() 59 up_write(&profile->lock); in blk_crypto_hw_exit() 90 __init_rwsem(&profile->lock, "&profile->lock", &profile->lockdep_key); in blk_crypto_profile_init() 92 init_rwsem(&profile->lock); in blk_crypto_profile_init() 270 down_read(&profile->lock); in blk_crypto_get_keyslot() 272 up_read(&profile->lock); in blk_crypto_get_keyslot() 438 down_write(&profile->lock); in blk_crypto_reprogram_all_keys() 449 up_write(&profile->lock); in blk_crypto_reprogram_all_keys()
|
D | blk-cgroup.c | 320 spin_lock(&blkcg->lock); in blkg_create() 334 spin_unlock(&blkcg->lock); in blkg_create() 426 lockdep_assert_held(&blkcg->lock); in blkg_destroy() 475 spin_lock(&blkcg->lock); in blkg_destroy_all() 477 spin_unlock(&blkcg->lock); in blkg_destroy_all() 515 spin_lock_irq(&blkcg->lock); in blkcg_reset_stats() 538 spin_unlock_irq(&blkcg->lock); in blkcg_reset_stats() 1060 spin_lock_irq(&blkcg->lock); in blkcg_destroy_blkgs() 1073 spin_unlock_irq(&blkcg->lock); in blkcg_destroy_blkgs() 1075 spin_lock_irq(&blkcg->lock); in blkcg_destroy_blkgs() [all …]
|
D | blk-mq-sched.c | 284 spin_lock(&hctx->lock); in __blk_mq_sched_dispatch_requests() 287 spin_unlock(&hctx->lock); in __blk_mq_sched_dispatch_requests() 366 spin_lock(&ctx->lock); in blk_mq_sched_bio_merge() 375 spin_unlock(&ctx->lock); in blk_mq_sched_bio_merge() 450 spin_lock(&ctx->lock); in blk_mq_sched_insert_request() 452 spin_unlock(&ctx->lock); in blk_mq_sched_insert_request()
|
D | blk-mq-debugfs.c | 340 __acquires(&hctx->lock) in hctx_dispatch_start() 344 spin_lock(&hctx->lock); in hctx_dispatch_start() 356 __releases(&hctx->lock) in hctx_dispatch_stop() 360 spin_unlock(&hctx->lock); in hctx_dispatch_stop() 544 __acquires(&ctx->lock) \ 548 spin_lock(&ctx->lock); \ 561 __releases(&ctx->lock) \ 565 spin_unlock(&ctx->lock); \
|
D | blk-iolatency.c | 109 spinlock_t lock; member 557 spin_lock_irqsave(&lat_info->lock, flags); in iolatency_check_latencies() 589 spin_unlock_irqrestore(&lat_info->lock, flags); in iolatency_check_latencies() 692 spin_lock_irqsave(&lat_info->lock, flags); in blkiolatency_timer_fn() 714 spin_unlock_irqrestore(&lat_info->lock, flags); in blkiolatency_timer_fn() 825 spin_lock(&lat_info->lock); in iolatency_clear_scaling() 830 spin_unlock(&lat_info->lock); in iolatency_clear_scaling() 996 spin_lock_init(&iolat->child_lat.lock); in iolatency_pd_init()
|
D | bfq-iosched.c | 465 lockdep_assert_held(&bfqd->lock); in bfq_schedule_dispatch() 590 spin_lock_irq(&bfqd->lock); in bfqq_request_over_limit() 594 spin_unlock_irq(&bfqd->lock); in bfqq_request_over_limit() 652 spin_unlock_irq(&bfqd->lock); in bfqq_request_over_limit() 2480 spin_lock_irq(&bfqd->lock); in bfq_bio_merge() 2497 spin_unlock_irq(&bfqd->lock); in bfq_bio_merge() 2669 spin_lock_irq(&bfqd->lock); in bfq_end_wr() 2677 spin_unlock_irq(&bfqd->lock); in bfq_end_wr() 5234 spin_lock_irq(&bfqd->lock); in bfq_dispatch_request() 5245 spin_unlock_irq(&bfqd->lock); in bfq_dispatch_request() [all …]
|
D | blk-mq.c | 1696 spin_lock(&ctx->lock); in flush_busy_ctx() 1699 spin_unlock(&ctx->lock); in flush_busy_ctx() 1731 spin_lock(&ctx->lock); in dispatch_rq_from_ctx() 1738 spin_unlock(&ctx->lock); in dispatch_rq_from_ctx() 1853 spin_lock_irq(&wq->lock); in blk_mq_mark_tag_wait() 1857 spin_unlock_irq(&wq->lock); in blk_mq_mark_tag_wait() 1889 spin_unlock_irq(&wq->lock); in blk_mq_mark_tag_wait() 1900 spin_unlock_irq(&wq->lock); in blk_mq_mark_tag_wait() 2121 spin_lock(&hctx->lock); in blk_mq_dispatch_rq_list() 2123 spin_unlock(&hctx->lock); in blk_mq_dispatch_rq_list() [all …]
|
D | blk-mq-tag.c | 251 spin_lock_irqsave(&tags->lock, flags); in blk_mq_find_and_get_req() 255 spin_unlock_irqrestore(&tags->lock, flags); in blk_mq_find_and_get_req() 576 spin_lock_init(&tags->lock); in blk_mq_init_tags()
|
D | bfq-cgroup.c | 931 spin_lock_irqsave(&bfqd->lock, flags); in bfq_pd_offline() 977 spin_unlock_irqrestore(&bfqd->lock, flags); in bfq_pd_offline() 1080 spin_lock_irq(&blkcg->lock); in bfq_io_set_weight_legacy() 1088 spin_unlock_irq(&blkcg->lock); in bfq_io_set_weight_legacy()
|
D | blk-mq.h | 20 spinlock_t lock; member
|
D | blk-cgroup.h | 90 spinlock_t lock; member
|
D | bfq-iosched.h | 751 spinlock_t lock; member
|
D | Kconfig | 186 Enabling this option enables users to setup/unlock/lock
|