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()
2964 spin_lock_irqsave(&conf->device_lock, flags); in raid5_error()
2980 spin_unlock_irqrestore(&conf->device_lock, flags); in raid5_error()
5379 __must_hold(&conf->device_lock) in raid5_activate_delayed()
5398 __must_hold(&conf->device_lock) in activate_bit_delay()
5433 spin_lock_irqsave(&conf->device_lock, flags); in add_bio_to_retry()
5438 spin_unlock_irqrestore(&conf->device_lock, flags); in add_bio_to_retry()
5573 spin_lock_irq(&conf->device_lock); in raid5_read_one_chunk()
5575 conf->device_lock); in raid5_read_one_chunk()
5577 spin_unlock_irq(&conf->device_lock); in raid5_read_one_chunk()
5623 __must_hold(&conf->device_lock) in __get_priority_stripe()
5732 spin_lock_irq(&conf->device_lock); in raid5_unplug()
5751 spin_unlock_irq(&conf->device_lock); in raid5_unplug()
5908 spin_lock_irq(&conf->device_lock); in stripe_ahead_of_reshape()
5915 spin_unlock_irq(&conf->device_lock); in stripe_ahead_of_reshape()
5992 spin_lock_irq(&conf->device_lock); in make_stripe_request()
5999 spin_unlock_irq(&conf->device_lock); in make_stripe_request()
6003 spin_unlock_irq(&conf->device_lock); in make_stripe_request()
6353 spin_lock_irq(&conf->device_lock); in reshape_request()
6355 spin_unlock_irq(&conf->device_lock); in reshape_request()
6393 spin_lock_irq(&conf->device_lock); in reshape_request()
6398 spin_unlock_irq(&conf->device_lock); in reshape_request()
6462 spin_lock_irq(&conf->device_lock); in reshape_request()
6464 spin_unlock_irq(&conf->device_lock); in reshape_request()
6633 __must_hold(&conf->device_lock) in handle_active_stripes()
6648 spin_unlock_irq(&conf->device_lock); in handle_active_stripes()
6650 spin_lock_irq(&conf->device_lock); in handle_active_stripes()
6655 spin_unlock_irq(&conf->device_lock); in handle_active_stripes()
6662 spin_lock_irq(&conf->device_lock); in handle_active_stripes()
6672 spin_lock_irq(&conf->device_lock); in handle_active_stripes()
6694 spin_lock_irq(&conf->device_lock); in raid5_do_work()
6708 conf->device_lock); in raid5_do_work()
6712 spin_unlock_irq(&conf->device_lock); in raid5_do_work()
6744 spin_lock_irq(&conf->device_lock); in raid5d()
6758 spin_unlock_irq(&conf->device_lock); in raid5d()
6760 spin_lock_irq(&conf->device_lock); in raid5d()
6768 spin_unlock_irq(&conf->device_lock); in raid5d()
6770 spin_lock_irq(&conf->device_lock); in raid5d()
6783 spin_unlock_irq(&conf->device_lock); in raid5d()
6785 spin_lock_irq(&conf->device_lock); in raid5d()
6797 conf->device_lock); in raid5d()
6801 spin_unlock_irq(&conf->device_lock); in raid5d()
7190 spin_lock_irq(&conf->device_lock); in raid5_store_group_thread_cnt()
7194 spin_unlock_irq(&conf->device_lock); in raid5_store_group_thread_cnt()
7494 spin_lock_init(&conf->device_lock); in setup_conf()
7495 seqcount_spinlock_init(&conf->gen_lock, &conf->device_lock); in setup_conf()
8174 spin_lock_irqsave(&conf->device_lock, flags); in raid5_spare_active()
8176 spin_unlock_irqrestore(&conf->device_lock, flags); in raid5_spare_active()
8498 spin_lock_irq(&conf->device_lock); in raid5_start_reshape()
8517 spin_unlock_irq(&conf->device_lock); in raid5_start_reshape()
8557 spin_lock_irqsave(&conf->device_lock, flags); in raid5_start_reshape()
8559 spin_unlock_irqrestore(&conf->device_lock, flags); in raid5_start_reshape()
8574 spin_lock_irq(&conf->device_lock); in raid5_start_reshape()
8587 spin_unlock_irq(&conf->device_lock); in raid5_start_reshape()
8605 spin_lock_irq(&conf->device_lock); in end_reshape()
8616 spin_unlock_irq(&conf->device_lock); in end_reshape()
8636 spin_lock_irq(&conf->device_lock); in raid5_finish_reshape()
8638 spin_unlock_irq(&conf->device_lock); in raid5_finish_reshape()