Merge of r2395 by Bart Van Assche <bvanassche@acm.org>:

The kernel module iscsi_scst loads again on RHEL 5 (Fixed "iscsi_scst: Unknown symbol set_cpus_allowed_ptr").



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2406 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2010-10-14 14:32:00 +00:00
parent f6da0ea9c5
commit 2b1490584c

View File

@@ -1073,7 +1073,11 @@ int istrd(void *arg)
PRINT_INFO("Read thread for pool %p started, PID %d", p, current->pid);
current->flags |= PF_NOFREEZE;
#ifdef RHEL_MAJOR
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);
@@ -1807,7 +1811,11 @@ int istwr(void *arg)
PRINT_INFO("Write thread for pool %p started, PID %d", p, current->pid);
current->flags |= PF_NOFREEZE;
#ifdef RHEL_MAJOR
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);