diff --git a/ChangeLog b/ChangeLog index 132c5772a..d64a72e56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ + * fixed low_prio_disk support on linux * fixed time critical piece accounting in the request queue * fixed semantics of rate_limit_utp to also ignore per-torrent limits * fixed piece sorting bug of deadline pieces diff --git a/src/disk_io_thread.cpp b/src/disk_io_thread.cpp index 045b5331d..b22bcae57 100644 --- a/src/disk_io_thread.cpp +++ b/src/disk_io_thread.cpp @@ -1781,7 +1781,8 @@ namespace libtorrent setiopolicy_np(IOPOL_TYPE_DISK, IOPOL_SCOPE_THREAD , m_settings.low_prio_disk ? IOPOL_THROTTLE : IOPOL_DEFAULT); #elif defined IOPRIO_WHO_PROCESS - syscall(ioprio_set, IOPRIO_WHO_PROCESS, getpid()); + syscall(ioprio_set, IOPRIO_WHO_PROCESS, getpid(), IOPRIO_PRIO_VALUE(IOPRIO_CLASS_BE + , m_settings.get_bool(settings_pack::low_prio_disk) ? 7: 0)); #endif if (m_settings.cache_size == -1) {