Lines Matching refs:device_lock
85 __acquires(&conf->device_lock) in lock_device_hash_lock()
88 spin_lock(&conf->device_lock); in lock_device_hash_lock()
92 __releases(&conf->device_lock) in unlock_device_hash_lock()
94 spin_unlock(&conf->device_lock); in unlock_device_hash_lock()
99 __acquires(&conf->device_lock) in lock_all_device_hash_locks_irq()
105 spin_lock(&conf->device_lock); in lock_all_device_hash_locks_irq()
109 __releases(&conf->device_lock) in unlock_all_device_hash_locks_irq()
112 spin_unlock(&conf->device_lock); in unlock_all_device_hash_locks_irq()
174 __must_hold(&sh->raid_conf->device_lock) in raid5_wakeup_stripe_thread()
222 __must_hold(&conf->device_lock) in do_release_stripe()
308 __must_hold(&conf->device_lock) in __release_stripe()
365 __must_hold(&conf->device_lock) in release_stripe_list()
414 if (atomic_dec_and_lock_irqsave(&sh->count, &conf->device_lock, flags)) { in raid5_release_stripe()
418 spin_unlock_irqrestore(&conf->device_lock, flags); in raid5_release_stripe()
649 spin_lock(&conf->device_lock); in find_get_stripe()
668 spin_unlock(&conf->device_lock); in find_get_stripe()
2971 spin_lock_irqsave(&conf->device_lock, flags); in raid5_error()
2987 spin_unlock_irqrestore(&conf->device_lock, flags); in raid5_error()
5386 __must_hold(&conf->device_lock) in raid5_activate_delayed()
5405 __must_hold(&conf->device_lock) in activate_bit_delay()
5440 spin_lock_irqsave(&conf->device_lock, flags); in add_bio_to_retry()
5445 spin_unlock_irqrestore(&conf->device_lock, flags); in add_bio_to_retry()
5567 spin_lock_irq(&conf->device_lock); in raid5_read_one_chunk()
5569 conf->device_lock); in raid5_read_one_chunk()
5571 spin_unlock_irq(&conf->device_lock); in raid5_read_one_chunk()
5617 __must_hold(&conf->device_lock) in __get_priority_stripe()
5726 spin_lock_irq(&conf->device_lock); in raid5_unplug()
5745 spin_unlock_irq(&conf->device_lock); in raid5_unplug()
5902 spin_lock_irq(&conf->device_lock); in stripe_ahead_of_reshape()
5909 spin_unlock_irq(&conf->device_lock); in stripe_ahead_of_reshape()
5999 spin_lock_irq(&conf->device_lock); in make_stripe_request()
6006 spin_unlock_irq(&conf->device_lock); in make_stripe_request()
6011 spin_unlock_irq(&conf->device_lock); in make_stripe_request()
6413 spin_lock_irq(&conf->device_lock); in reshape_request()
6415 spin_unlock_irq(&conf->device_lock); in reshape_request()
6453 spin_lock_irq(&conf->device_lock); in reshape_request()
6458 spin_unlock_irq(&conf->device_lock); in reshape_request()
6522 spin_lock_irq(&conf->device_lock); in reshape_request()
6524 spin_unlock_irq(&conf->device_lock); in reshape_request()
6693 __must_hold(&conf->device_lock) in handle_active_stripes()
6708 spin_unlock_irq(&conf->device_lock); in handle_active_stripes()
6710 spin_lock_irq(&conf->device_lock); in handle_active_stripes()
6715 spin_unlock_irq(&conf->device_lock); in handle_active_stripes()
6722 spin_lock_irq(&conf->device_lock); in handle_active_stripes()
6732 spin_lock_irq(&conf->device_lock); in handle_active_stripes()
6754 spin_lock_irq(&conf->device_lock); in raid5_do_work()
6768 conf->device_lock); in raid5_do_work()
6772 spin_unlock_irq(&conf->device_lock); in raid5_do_work()
6804 spin_lock_irq(&conf->device_lock); in raid5d()
6818 spin_unlock_irq(&conf->device_lock); in raid5d()
6820 spin_lock_irq(&conf->device_lock); in raid5d()
6828 spin_unlock_irq(&conf->device_lock); in raid5d()
6830 spin_lock_irq(&conf->device_lock); in raid5d()
6843 spin_unlock_irq(&conf->device_lock); in raid5d()
6845 spin_lock_irq(&conf->device_lock); in raid5d()
6857 conf->device_lock); in raid5d()
6861 spin_unlock_irq(&conf->device_lock); in raid5d()
7250 spin_lock_irq(&conf->device_lock); in raid5_store_group_thread_cnt()
7254 spin_unlock_irq(&conf->device_lock); in raid5_store_group_thread_cnt()
7554 spin_lock_init(&conf->device_lock); in setup_conf()
7555 seqcount_spinlock_init(&conf->gen_lock, &conf->device_lock); in setup_conf()
8213 spin_lock_irqsave(&conf->device_lock, flags); in raid5_spare_active()
8215 spin_unlock_irqrestore(&conf->device_lock, flags); in raid5_spare_active()
8546 spin_lock_irq(&conf->device_lock); in raid5_start_reshape()
8565 spin_unlock_irq(&conf->device_lock); in raid5_start_reshape()
8605 spin_lock_irqsave(&conf->device_lock, flags); in raid5_start_reshape()
8607 spin_unlock_irqrestore(&conf->device_lock, flags); in raid5_start_reshape()
8622 spin_lock_irq(&conf->device_lock); in raid5_start_reshape()
8635 spin_unlock_irq(&conf->device_lock); in raid5_start_reshape()
8653 spin_lock_irq(&conf->device_lock); in end_reshape()
8664 spin_unlock_irq(&conf->device_lock); in end_reshape()
8684 spin_lock_irq(&conf->device_lock); in raid5_finish_reshape()
8686 spin_unlock_irq(&conf->device_lock); in raid5_finish_reshape()