Lines Matching refs:test_and_clear_bit
314 if (test_and_clear_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) in do_release_stripe()
838 if (test_and_clear_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) in stripe_add_to_batch_list()
843 if (test_and_clear_bit(STRIPE_BIT_DELAY, &sh->state)) { in stripe_add_to_batch_list()
902 if (test_and_clear_bit(R5_Wantwrite, &sh->dev[i].flags)) { in ops_run_io()
903 if (test_and_clear_bit(R5_WantFUA, &sh->dev[i].flags)) in ops_run_io()
909 } else if (test_and_clear_bit(R5_Wantread, &sh->dev[i].flags)) in ops_run_io()
911 else if (test_and_clear_bit(R5_WantReplace, in ops_run_io()
917 if (test_and_clear_bit(R5_SyncIO, &sh->dev[i].flags)) in ops_run_io()
1188 if (test_and_clear_bit(R5_Wantfill, &dev->flags)) { in ops_complete_biofill()
1608 if (test_and_clear_bit(R5_Wantdrain, &head_sh->dev[i].flags)) { in ops_run_biodrain()
1977 if (test_and_clear_bit(R5_Overlap, &dev->flags)) in raid_run_ops()
2477 if (!test_and_clear_bit(R5_DOUBLE_LOCKED, &sh->dev[i].flags)) in raid5_end_write_request()
3110 if (test_and_clear_bit(R5_Overlap, &sh->dev[i].flags)) in handle_failed_stripe()
3131 if (test_and_clear_bit(R5_SkipCopy, &sh->dev[i].flags)) { in handle_failed_stripe()
3160 if (test_and_clear_bit(R5_Overlap, &sh->dev[i].flags)) in handle_failed_stripe()
3186 if (test_and_clear_bit(STRIPE_FULL_WRITE, &sh->state)) in handle_failed_stripe()
3200 if (test_and_clear_bit(R5_Overlap, &sh->dev[sh->pd_idx].flags)) in handle_failed_sync()
3470 if (test_and_clear_bit(R5_Discard, &dev->flags)) in handle_stripe_clean_event()
3472 if (test_and_clear_bit(R5_SkipCopy, &dev->flags)) { in handle_stripe_clean_event()
3547 if (test_and_clear_bit(STRIPE_FULL_WRITE, &sh->state)) in handle_stripe_clean_event()
4201 if (!test_and_clear_bit(STRIPE_BATCH_READY, &sh->state)) in clear_batch_ready()
4265 if (test_and_clear_bit(R5_Overlap, &sh->dev[i].flags)) in break_stripe_batch_list()
4282 if (test_and_clear_bit(R5_Overlap, &head_sh->dev[i].flags)) in break_stripe_batch_list()
4313 if (test_and_clear_bit(STRIPE_BATCH_ERR, &sh->state)) in handle_stripe()
4320 test_and_clear_bit(STRIPE_SYNC_REQUESTED, &sh->state)) { in handle_stripe()
4413 if (test_and_clear_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) in handle_stripe()
4495 if (test_and_clear_bit(R5_Overlap, &sh->dev[sh->pd_idx].flags)) in handle_stripe()
4587 if (test_and_clear_bit(R5_WriteError, &dev->flags)) { in handle_stripe()
4595 if (test_and_clear_bit(R5_MadeGood, &dev->flags)) { in handle_stripe()
4601 if (test_and_clear_bit(R5_MadeGoodRepl, &dev->flags)) { in handle_stripe()
5902 if (test_and_clear_bit(R5_ALLOC_MORE, &conf->cache_state) && in raid5d()
7115 || !test_and_clear_bit(In_sync, &tmp->rdev->flags)) in raid5_spare_active()