Skip to content

Commit

Permalink
Merge pull request #10 from Artemy-Mellanox/topic/compilation-fix
Browse files Browse the repository at this point in the history
Compilation fix for 5.14
  • Loading branch information
yosefe authored Oct 17, 2021
2 parents d5346d6 + 2c3642c commit 025b72a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kernel/xpmem_pfn.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
#error Unsuported architecture
#endif

#ifndef task_is_stopped
#define task_is_stopped(task) ((task)->state == TASK_STOPPED)
#endif

static pte_t *
xpmem_hugetlb_pte(pte_t *pte, struct mm_struct *mm, u64 vaddr, u64 *offset)
{
Expand Down Expand Up @@ -562,7 +566,7 @@ xpmem_is_thread_group_stopped(struct xpmem_thread_group *tg)
rcu_read_lock();
do {
if (!(task->flags & PF_EXITING) &&
task->state != TASK_STOPPED) {
!task_is_stopped(task)) {
rcu_read_unlock();
return 0;
}
Expand Down

0 comments on commit 025b72a

Please sign in to comment.