aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/drbd/drbd_receiver.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c
index a75c0b134856..0f449bbf0edf 100644
--- a/drivers/block/drbd/drbd_receiver.c
+++ b/drivers/block/drbd/drbd_receiver.c
@@ -5257,9 +5257,11 @@ int drbd_asender(struct drbd_thread *thi)
5257 bool ping_timeout_active = false; 5257 bool ping_timeout_active = false;
5258 struct net_conf *nc; 5258 struct net_conf *nc;
5259 int ping_timeo, tcp_cork, ping_int; 5259 int ping_timeo, tcp_cork, ping_int;
5260 struct sched_param param = { .sched_priority = 2 };
5260 5261
5261 current->policy = SCHED_RR; /* Make this a realtime task! */ 5262 rv = sched_setscheduler(current, SCHED_RR, &param);
5262 current->rt_priority = 2; /* more important than all other tasks */ 5263 if (rv < 0)
5264 conn_err(tconn, "drbd_asender: ERROR set priority, ret=%d\n", rv);
5263 5265
5264 while (get_t_state(thi) == RUNNING) { 5266 while (get_t_state(thi) == RUNNING) {
5265 drbd_thread_current_set_cpu(thi); 5267 drbd_thread_current_set_cpu(thi);