Lines Matching refs:iosched
507 atomic_set(&pd->iosched.attention, 1); in pkt_bio_finished()
800 spin_lock(&pd->iosched.lock); in pkt_queue_bio()
802 bio_list_add(&pd->iosched.read_queue, bio); in pkt_queue_bio()
804 bio_list_add(&pd->iosched.write_queue, bio); in pkt_queue_bio()
805 spin_unlock(&pd->iosched.lock); in pkt_queue_bio()
807 atomic_set(&pd->iosched.attention, 1); in pkt_queue_bio()
830 if (atomic_read(&pd->iosched.attention) == 0) in pkt_iosched_process_queue()
832 atomic_set(&pd->iosched.attention, 0); in pkt_iosched_process_queue()
838 spin_lock(&pd->iosched.lock); in pkt_iosched_process_queue()
839 reads_queued = !bio_list_empty(&pd->iosched.read_queue); in pkt_iosched_process_queue()
840 writes_queued = !bio_list_empty(&pd->iosched.write_queue); in pkt_iosched_process_queue()
841 spin_unlock(&pd->iosched.lock); in pkt_iosched_process_queue()
846 if (pd->iosched.writing) { in pkt_iosched_process_queue()
848 spin_lock(&pd->iosched.lock); in pkt_iosched_process_queue()
849 bio = bio_list_peek(&pd->iosched.write_queue); in pkt_iosched_process_queue()
850 spin_unlock(&pd->iosched.lock); in pkt_iosched_process_queue()
852 pd->iosched.last_write)) in pkt_iosched_process_queue()
860 pd->iosched.writing = 0; in pkt_iosched_process_queue()
868 pd->iosched.writing = 1; in pkt_iosched_process_queue()
872 spin_lock(&pd->iosched.lock); in pkt_iosched_process_queue()
873 if (pd->iosched.writing) in pkt_iosched_process_queue()
874 bio = bio_list_pop(&pd->iosched.write_queue); in pkt_iosched_process_queue()
876 bio = bio_list_pop(&pd->iosched.read_queue); in pkt_iosched_process_queue()
877 spin_unlock(&pd->iosched.lock); in pkt_iosched_process_queue()
883 pd->iosched.successive_reads += in pkt_iosched_process_queue()
886 pd->iosched.successive_reads = 0; in pkt_iosched_process_queue()
887 pd->iosched.last_write = bio_end_sector(bio); in pkt_iosched_process_queue()
889 if (pd->iosched.successive_reads >= HI_SPEED_SWITCH) { in pkt_iosched_process_queue()
1414 if (atomic_read(&pd->iosched.attention) != 0) in kcdrwd()
2688 spin_lock_init(&pd->iosched.lock); in pkt_setup_dev()
2689 bio_list_init(&pd->iosched.read_queue); in pkt_setup_dev()
2690 bio_list_init(&pd->iosched.write_queue); in pkt_setup_dev()