diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-04-21 12:09:13 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-06-15 14:10:21 +0200 |
commit | c9ec0524706e580c78c61e38ef5e7761ed2f8485 (patch) | |
tree | 01807ffa5b5c54eb3d547162ba496f294ec76dbd /drivers/block | |
parent | 4ca6c1a060943161c6c2ce09e02ed58a69669cfe (diff) | |
download | linux-stable-c9ec0524706e580c78c61e38ef5e7761ed2f8485.tar.gz linux-stable-c9ec0524706e580c78c61e38ef5e7761ed2f8485.tar.bz2 linux-stable-c9ec0524706e580c78c61e38ef5e7761ed2f8485.zip |
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: axboe@kernel.dk
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index 3a3f2b6a821f..140fd98274b1 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c @@ -6019,9 +6019,8 @@ int drbd_ack_receiver(struct drbd_thread *thi) unsigned int header_size = drbd_header_size(connection); int expect = header_size; bool ping_timeout_active = false; - struct sched_param param = { .sched_priority = 2 }; - rv = sched_setscheduler(current, SCHED_RR, ¶m); + rv = sched_set_fifo_low(current); if (rv < 0) drbd_err(connection, "drbd_ack_receiver: ERROR set priority, ret=%d\n", rv); |