File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -662,9 +662,9 @@ int blk_queue_enter(struct request_queue *q, bool nowait)
662
662
if (nowait )
663
663
return - EBUSY ;
664
664
665
- swait_event (q -> mq_freeze_wq ,
666
- !atomic_read (& q -> mq_freeze_depth ) ||
667
- blk_queue_dying (q ));
665
+ wait_event (q -> mq_freeze_wq ,
666
+ !atomic_read (& q -> mq_freeze_depth ) ||
667
+ blk_queue_dying (q ));
668
668
if (blk_queue_dying (q ))
669
669
return - ENODEV ;
670
670
}
@@ -680,7 +680,7 @@ static void blk_queue_usage_counter_release(struct percpu_ref *ref)
680
680
struct request_queue * q =
681
681
container_of (ref , struct request_queue , q_usage_counter );
682
682
683
- swake_up_all (& q -> mq_freeze_wq );
683
+ wake_up_all (& q -> mq_freeze_wq );
684
684
}
685
685
686
686
static void blk_rq_timed_out_timer (unsigned long data )
@@ -750,7 +750,7 @@ struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id)
750
750
q -> bypass_depth = 1 ;
751
751
__set_bit (QUEUE_FLAG_BYPASS , & q -> queue_flags );
752
752
753
- init_swait_queue_head (& q -> mq_freeze_wq );
753
+ init_waitqueue_head (& q -> mq_freeze_wq );
754
754
755
755
/*
756
756
* Init percpu_ref in atomic mode so that it's faster to shutdown.
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ EXPORT_SYMBOL_GPL(blk_mq_freeze_queue_start);
72
72
73
73
static void blk_mq_freeze_queue_wait (struct request_queue * q )
74
74
{
75
- swait_event (q -> mq_freeze_wq , percpu_ref_is_zero (& q -> q_usage_counter ));
75
+ wait_event (q -> mq_freeze_wq , percpu_ref_is_zero (& q -> q_usage_counter ));
76
76
}
77
77
78
78
/*
@@ -110,7 +110,7 @@ void blk_mq_unfreeze_queue(struct request_queue *q)
110
110
WARN_ON_ONCE (freeze_depth < 0 );
111
111
if (!freeze_depth ) {
112
112
percpu_ref_reinit (& q -> q_usage_counter );
113
- swake_up_all (& q -> mq_freeze_wq );
113
+ wake_up_all (& q -> mq_freeze_wq );
114
114
}
115
115
}
116
116
EXPORT_SYMBOL_GPL (blk_mq_unfreeze_queue );
@@ -129,7 +129,7 @@ void blk_mq_wake_waiters(struct request_queue *q)
129
129
* dying, we need to ensure that processes currently waiting on
130
130
* the queue are notified as well.
131
131
*/
132
- swake_up_all (& q -> mq_freeze_wq );
132
+ wake_up_all (& q -> mq_freeze_wq );
133
133
}
134
134
135
135
bool blk_mq_can_queue (struct blk_mq_hw_ctx * hctx )
Original file line number Diff line number Diff line change @@ -468,7 +468,7 @@ struct request_queue {
468
468
struct throtl_data * td ;
469
469
#endif
470
470
struct rcu_head rcu_head ;
471
- struct swait_queue_head mq_freeze_wq ;
471
+ wait_queue_head_t mq_freeze_wq ;
472
472
struct percpu_ref q_usage_counter ;
473
473
struct list_head all_q_node ;
474
474
You can’t perform that action at this time.
0 commit comments