diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/loop.c | 2 | ||||
-rw-r--r-- | drivers/block/nbd.c | 2 | ||||
-rw-r--r-- | drivers/block/pktcdvd.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index f70a230a2945..6cb1beb47c25 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c | |||
@@ -548,7 +548,7 @@ static int loop_thread(void *data) | |||
548 | struct loop_device *lo = data; | 548 | struct loop_device *lo = data; |
549 | struct bio *bio; | 549 | struct bio *bio; |
550 | 550 | ||
551 | set_user_nice(current, -20); | 551 | set_user_nice(current, MIN_NICE); |
552 | 552 | ||
553 | while (!kthread_should_stop() || !bio_list_empty(&lo->lo_bio_list)) { | 553 | while (!kthread_should_stop() || !bio_list_empty(&lo->lo_bio_list)) { |
554 | 554 | ||
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 3a70ea2f7cd6..56a027d6115e 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c | |||
@@ -533,7 +533,7 @@ static int nbd_thread(void *data) | |||
533 | struct nbd_device *nbd = data; | 533 | struct nbd_device *nbd = data; |
534 | struct request *req; | 534 | struct request *req; |
535 | 535 | ||
536 | set_user_nice(current, -20); | 536 | set_user_nice(current, MIN_NICE); |
537 | while (!kthread_should_stop() || !list_empty(&nbd->waiting_queue)) { | 537 | while (!kthread_should_stop() || !list_empty(&nbd->waiting_queue)) { |
538 | /* wait for something to do */ | 538 | /* wait for something to do */ |
539 | wait_event_interruptible(nbd->waiting_wq, | 539 | wait_event_interruptible(nbd->waiting_wq, |
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index a2af73db187b..ef166ad2dbad 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c | |||
@@ -1463,7 +1463,7 @@ static int kcdrwd(void *foobar) | |||
1463 | struct packet_data *pkt; | 1463 | struct packet_data *pkt; |
1464 | long min_sleep_time, residue; | 1464 | long min_sleep_time, residue; |
1465 | 1465 | ||
1466 | set_user_nice(current, -20); | 1466 | set_user_nice(current, MIN_NICE); |
1467 | set_freezable(); | 1467 | set_freezable(); |
1468 | 1468 | ||
1469 | for (;;) { | 1469 | for (;;) { |