Lines Matching refs:device_lock

86 	__acquires(&conf->device_lock)  in lock_device_hash_lock()
89 spin_lock(&conf->device_lock); in lock_device_hash_lock()
93 __releases(&conf->device_lock) in unlock_device_hash_lock()
95 spin_unlock(&conf->device_lock); in unlock_device_hash_lock()
100 __acquires(&conf->device_lock) in lock_all_device_hash_locks_irq()
106 spin_lock(&conf->device_lock); in lock_all_device_hash_locks_irq()
110 __releases(&conf->device_lock) in unlock_all_device_hash_locks_irq()
113 spin_unlock(&conf->device_lock); in unlock_all_device_hash_locks_irq()
175 __must_hold(&sh->raid_conf->device_lock) in raid5_wakeup_stripe_thread()
223 __must_hold(&conf->device_lock) in do_release_stripe()
309 __must_hold(&conf->device_lock) in __release_stripe()
366 __must_hold(&conf->device_lock) in release_stripe_list()
415 if (atomic_dec_and_lock_irqsave(&sh->count, &conf->device_lock, flags)) { in raid5_release_stripe()
419 spin_unlock_irqrestore(&conf->device_lock, flags); in raid5_release_stripe()
650 spin_lock(&conf->device_lock); in find_get_stripe()
669 spin_unlock(&conf->device_lock); in find_get_stripe()
2916 spin_lock_irqsave(&conf->device_lock, flags); in raid5_error()
2932 spin_unlock_irqrestore(&conf->device_lock, flags); in raid5_error()
5279 __must_hold(&conf->device_lock) in raid5_activate_delayed()
5298 __must_hold(&conf->device_lock) in activate_bit_delay()
5333 spin_lock_irqsave(&conf->device_lock, flags); in add_bio_to_retry()
5338 spin_unlock_irqrestore(&conf->device_lock, flags); in add_bio_to_retry()
5457 spin_lock_irq(&conf->device_lock); in raid5_read_one_chunk()
5459 conf->device_lock); in raid5_read_one_chunk()
5461 spin_unlock_irq(&conf->device_lock); in raid5_read_one_chunk()
5501 __must_hold(&conf->device_lock) in __get_priority_stripe()
5610 spin_lock_irq(&conf->device_lock); in raid5_unplug()
5629 spin_unlock_irq(&conf->device_lock); in raid5_unplug()
5778 spin_lock_irq(&conf->device_lock); in stripe_ahead_of_reshape()
5785 spin_unlock_irq(&conf->device_lock); in stripe_ahead_of_reshape()
5865 spin_lock_irq(&conf->device_lock); in get_reshape_loc()
5868 spin_unlock_irq(&conf->device_lock); in get_reshape_loc()
6358 spin_lock_irq(&conf->device_lock); in reshape_request()
6360 spin_unlock_irq(&conf->device_lock); in reshape_request()
6398 spin_lock_irq(&conf->device_lock); in reshape_request()
6403 spin_unlock_irq(&conf->device_lock); in reshape_request()
6467 spin_lock_irq(&conf->device_lock); in reshape_request()
6469 spin_unlock_irq(&conf->device_lock); in reshape_request()
6637 __must_hold(&conf->device_lock) in handle_active_stripes()
6652 spin_unlock_irq(&conf->device_lock); in handle_active_stripes()
6654 spin_lock_irq(&conf->device_lock); in handle_active_stripes()
6659 spin_unlock_irq(&conf->device_lock); in handle_active_stripes()
6666 spin_lock_irq(&conf->device_lock); in handle_active_stripes()
6676 spin_lock_irq(&conf->device_lock); in handle_active_stripes()
6698 spin_lock_irq(&conf->device_lock); in raid5_do_work()
6712 conf->device_lock); in raid5_do_work()
6716 spin_unlock_irq(&conf->device_lock); in raid5_do_work()
6748 spin_lock_irq(&conf->device_lock); in raid5d()
6765 spin_unlock_irq(&conf->device_lock); in raid5d()
6767 spin_lock_irq(&conf->device_lock); in raid5d()
6775 spin_unlock_irq(&conf->device_lock); in raid5d()
6777 spin_lock_irq(&conf->device_lock); in raid5d()
6790 spin_unlock_irq(&conf->device_lock); in raid5d()
6792 spin_lock_irq(&conf->device_lock); in raid5d()
6797 spin_unlock_irq(&conf->device_lock); in raid5d()
7182 spin_lock_irq(&conf->device_lock); in raid5_store_group_thread_cnt()
7186 spin_unlock_irq(&conf->device_lock); in raid5_store_group_thread_cnt()
7489 spin_lock_init(&conf->device_lock); in setup_conf()
7490 seqcount_spinlock_init(&conf->gen_lock, &conf->device_lock); in setup_conf()
8135 spin_lock_irqsave(&conf->device_lock, flags); in raid5_spare_active()
8137 spin_unlock_irqrestore(&conf->device_lock, flags); in raid5_spare_active()
8456 spin_lock_irq(&conf->device_lock); in raid5_start_reshape()
8475 spin_unlock_irq(&conf->device_lock); in raid5_start_reshape()
8515 spin_lock_irqsave(&conf->device_lock, flags); in raid5_start_reshape()
8517 spin_unlock_irqrestore(&conf->device_lock, flags); in raid5_start_reshape()
8542 spin_lock_irq(&conf->device_lock); in end_reshape()
8553 spin_unlock_irq(&conf->device_lock); in end_reshape()
8573 spin_lock_irq(&conf->device_lock); in raid5_finish_reshape()
8575 spin_unlock_irq(&conf->device_lock); in raid5_finish_reshape()