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()
2928 spin_lock_irqsave(&conf->device_lock, flags); in raid5_error()
2944 spin_unlock_irqrestore(&conf->device_lock, flags); in raid5_error()
5332 __must_hold(&conf->device_lock) in raid5_activate_delayed()
5351 __must_hold(&conf->device_lock) in activate_bit_delay()
5386 spin_lock_irqsave(&conf->device_lock, flags); in add_bio_to_retry()
5391 spin_unlock_irqrestore(&conf->device_lock, flags); in add_bio_to_retry()
5510 spin_lock_irq(&conf->device_lock); in raid5_read_one_chunk()
5512 conf->device_lock); in raid5_read_one_chunk()
5514 spin_unlock_irq(&conf->device_lock); in raid5_read_one_chunk()
5554 __must_hold(&conf->device_lock) in __get_priority_stripe()
5663 spin_lock_irq(&conf->device_lock); in raid5_unplug()
5682 spin_unlock_irq(&conf->device_lock); in raid5_unplug()
5835 spin_lock_irq(&conf->device_lock); in stripe_ahead_of_reshape()
5842 spin_unlock_irq(&conf->device_lock); in stripe_ahead_of_reshape()
5919 spin_lock_irq(&conf->device_lock); in get_reshape_loc()
5922 spin_unlock_irq(&conf->device_lock); in get_reshape_loc()
6368 spin_lock_irq(&conf->device_lock); in reshape_request()
6370 spin_unlock_irq(&conf->device_lock); in reshape_request()
6408 spin_lock_irq(&conf->device_lock); in reshape_request()
6413 spin_unlock_irq(&conf->device_lock); in reshape_request()
6477 spin_lock_irq(&conf->device_lock); in reshape_request()
6479 spin_unlock_irq(&conf->device_lock); in reshape_request()
6647 __must_hold(&conf->device_lock) in handle_active_stripes()
6662 spin_unlock_irq(&conf->device_lock); in handle_active_stripes()
6664 spin_lock_irq(&conf->device_lock); in handle_active_stripes()
6669 spin_unlock_irq(&conf->device_lock); in handle_active_stripes()
6676 spin_lock_irq(&conf->device_lock); in handle_active_stripes()
6686 spin_lock_irq(&conf->device_lock); in handle_active_stripes()
6708 spin_lock_irq(&conf->device_lock); in raid5_do_work()
6722 conf->device_lock); in raid5_do_work()
6726 spin_unlock_irq(&conf->device_lock); in raid5_do_work()
6758 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()
6785 spin_unlock_irq(&conf->device_lock); in raid5d()
6787 spin_lock_irq(&conf->device_lock); in raid5d()
6800 spin_unlock_irq(&conf->device_lock); in raid5d()
6802 spin_lock_irq(&conf->device_lock); in raid5d()
6807 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()
7495 spin_lock_init(&conf->device_lock); in setup_conf()
7496 seqcount_spinlock_init(&conf->gen_lock, &conf->device_lock); in setup_conf()
8141 spin_lock_irqsave(&conf->device_lock, flags); in raid5_spare_active()
8143 spin_unlock_irqrestore(&conf->device_lock, flags); in raid5_spare_active()
8462 spin_lock_irq(&conf->device_lock); in raid5_start_reshape()
8481 spin_unlock_irq(&conf->device_lock); in raid5_start_reshape()
8521 spin_lock_irqsave(&conf->device_lock, flags); in raid5_start_reshape()
8523 spin_unlock_irqrestore(&conf->device_lock, flags); in raid5_start_reshape()
8548 spin_lock_irq(&conf->device_lock); in end_reshape()
8559 spin_unlock_irq(&conf->device_lock); in end_reshape()
8579 spin_lock_irq(&conf->device_lock); in raid5_finish_reshape()
8581 spin_unlock_irq(&conf->device_lock); in raid5_finish_reshape()