diff --git a/iscsi-scst/kernel/nthread.c b/iscsi-scst/kernel/nthread.c index 8d2597b7d..381b5beb7 100644 --- a/iscsi-scst/kernel/nthread.c +++ b/iscsi-scst/kernel/nthread.c @@ -1094,11 +1094,7 @@ int istrd(void *arg) PRINT_INFO("Read thread for pool %p started, PID %d", p, current->pid); current->flags |= PF_NOFREEZE; -#if defined(RHEL_MAJOR) && RHEL_MAJOR -0 <= 5 - rc = set_cpus_allowed(current, p->cpu_mask); -#else rc = set_cpus_allowed_ptr(current, &p->cpu_mask); -#endif if (rc != 0) PRINT_ERROR("Setting CPU affinity failed: %d", rc); @@ -1862,11 +1858,7 @@ int istwr(void *arg) PRINT_INFO("Write thread for pool %p started, PID %d", p, current->pid); current->flags |= PF_NOFREEZE; -#if defined(RHEL_MAJOR) && RHEL_MAJOR -0 <= 5 - rc = set_cpus_allowed(current, p->cpu_mask); -#else rc = set_cpus_allowed_ptr(current, &p->cpu_mask); -#endif if (rc != 0) PRINT_ERROR("Setting CPU affinity failed: %d", rc); diff --git a/scst/src/scst_main.c b/scst/src/scst_main.c index e89642510..71671f1cc 100644 --- a/scst/src/scst_main.c +++ b/scst/src/scst_main.c @@ -1914,13 +1914,8 @@ int scst_add_threads(struct scst_cmd_threads *cmd_threads, * sess->acg can be NULL here, if called from * scst_check_reassign_sess()! */ -#if defined(RHEL_MAJOR) && RHEL_MAJOR -0 <= 5 - rc = set_cpus_allowed(thr->cmd_thread, - tgt_dev->acg_dev->acg->acg_cpu_mask); -#else rc = set_cpus_allowed_ptr(thr->cmd_thread, &tgt_dev->acg_dev->acg->acg_cpu_mask); -#endif if (rc != 0) PRINT_ERROR("Setting CPU affinity failed: " "%d", rc);