Skip to content

Commit

Permalink
trylock_page here? doesn't fix the issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
aversecat committed Jun 10, 2024
1 parent 37affd9 commit 9115c44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kmod/src/data.c
Original file line number Diff line number Diff line change
Expand Up @@ -1973,7 +1973,11 @@ static int scoutfs_data_page_mkwrite(struct vm_area_struct *vma,
}

file_update_time(vma->vm_file);
lock_page(page);
// lock_page(page);
if (!trylock_page(page)) {
ret = VM_FAULT_RETRY;
goto out;
}
size = i_size_read(inode);
pos = page_offset(page);
ret = VM_FAULT_LOCKED;
Expand Down

0 comments on commit 9115c44

Please sign in to comment.