mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
Merge branch 'mm-hotfixes-stable' into mm-stable
To pick up depended-upon changes
This commit is contained in:
commit
f67d6b2664
18 changed files with 102 additions and 45 deletions
4
fs/aio.c
4
fs/aio.c
|
@ -361,6 +361,9 @@ static int aio_ring_mremap(struct vm_area_struct *vma)
|
|||
spin_lock(&mm->ioctx_lock);
|
||||
rcu_read_lock();
|
||||
table = rcu_dereference(mm->ioctx_table);
|
||||
if (!table)
|
||||
goto out_unlock;
|
||||
|
||||
for (i = 0; i < table->nr; i++) {
|
||||
struct kioctx *ctx;
|
||||
|
||||
|
@ -374,6 +377,7 @@ static int aio_ring_mremap(struct vm_area_struct *vma)
|
|||
}
|
||||
}
|
||||
|
||||
out_unlock:
|
||||
rcu_read_unlock();
|
||||
spin_unlock(&mm->ioctx_lock);
|
||||
return res;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue