From 760b71423abf071b5e77255a3d25d03f02ee84d0 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 27 Aug 2014 02:43:50 +0000 Subject: [PATCH] scst: Remove set_cpus_allowed() invocations Since scst.h contains a backport of the definition of set_cpus_allowed_ptr(), the set_cpus_allowed() invocations are superfluous. Hence remove these. Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5734 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/nthread.c | 8 -------- scst/src/scst_main.c | 5 ----- 2 files changed, 13 deletions(-) diff --git a/iscsi-scst/kernel/nthread.c b/iscsi-scst/kernel/nthread.c index 57d439665..6a8119ba8 100644 --- a/iscsi-scst/kernel/nthread.c +++ b/iscsi-scst/kernel/nthread.c @@ -1073,11 +1073,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); @@ -1841,11 +1837,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 97bf90fea..14fa55849 100644 --- a/scst/src/scst_main.c +++ b/scst/src/scst_main.c @@ -1921,13 +1921,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);