Skip to content

Commit c9ec052

Browse files
author
Peter Zijlstra
committed
sched,drbd: Convert to sched_set_fifo*()
Because SCHED_FIFO is a broken scheduler model (see previous patches) take away the priority field, the kernel can't possibly make an informed decision. In this case, use fifo_low, because it only cares about being above SCHED_NORMAL. Effectively changes prio from 2 to 1. Cc: [email protected] Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Ingo Molnar <[email protected]>
1 parent 4ca6c1a commit c9ec052

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/block/drbd/drbd_receiver.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6019,9 +6019,8 @@ int drbd_ack_receiver(struct drbd_thread *thi)
60196019
unsigned int header_size = drbd_header_size(connection);
60206020
int expect = header_size;
60216021
bool ping_timeout_active = false;
6022-
struct sched_param param = { .sched_priority = 2 };
60236022

6024-
rv = sched_setscheduler(current, SCHED_RR, &param);
6023+
rv = sched_set_fifo_low(current);
60256024
if (rv < 0)
60266025
drbd_err(connection, "drbd_ack_receiver: ERROR set priority, ret=%d\n", rv);
60276026

0 commit comments

Comments
 (0)