iolog: run compression work at slightly elevated nice level
authorJens Axboe <axboe@fb.com>
Wed, 9 Jul 2014 07:52:20 +0000 (09:52 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 9 Jul 2014 07:52:20 +0000 (09:52 +0200)
commit5930db2c065082e4514587de5ccfc6624f73dcc2
tree660495155e822792e28c158fa949daad523b67e1
parentcba5460c70058e4612f73ded4ac960cbc6ce1a30
iolog: run compression work at slightly elevated nice level

Add support for work items to contain a priority, and use this
directly with nice. Run compression at nice 1, to make it slightly
less important than the actual IO jobs.

Signed-off-by: Jens Axboe <axboe@fb.com>
iolog.c
lib/tp.c
lib/tp.h