mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 05:31:28 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user