Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libublksrv: use sched_setaffinity() instead of pthread function
pthread_setaffinity_np() is actually a wrapper around sched_setaffinity(). For our usecase we are trying to set affinity only of the current thread, so we can use sched_setaffinity() as a drop in replacement. This makes code more portable (< glibc2.3.4, bionic) and concise while keeping the functionality same. Signed-off-by: Sandeep Dhavale <[email protected]>
- Loading branch information