scst: Remove set_cpus_allowed() invocations (merge r5734 from trunk)

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6285 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-06-11 17:04:46 +00:00
parent 46e7a249d6
commit 0955132fc3
2 changed files with 0 additions and 13 deletions

View File

@@ -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);

View File

@@ -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);