diff options
author | Peng Hao <flyingpeng@tencent.com> | 2021-09-08 11:38:28 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2021-10-22 18:03:01 +0300 |
commit | 5fe0fc9f1de63de748b87f121c038d39192a271d (patch) | |
tree | b9553fb2b3a09efa7044b1f667ef3c7c4f28d445 /fs/fuse/ioctl.c | |
parent | bda9a71980e083699a0360963c0135657b73f47a (diff) | |
download | linux-5fe0fc9f1de63de748b87f121c038d39192a271d.tar.xz |
fuse: use kmap_local_page()
Due to the introduction of kmap_local_*, the storage of slots used for
short-term mapping has changed from per-CPU to per-thread. kmap_atomic()
disable preemption, while kmap_local_*() only disable migration.
There is no need to disable preemption in several kamp_atomic places used
in fuse.
Link: https://lwn.net/Articles/836144/
Signed-off-by: Peng Hao <flyingpeng@tencent.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/ioctl.c')
-rw-r--r-- | fs/fuse/ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fuse/ioctl.c b/fs/fuse/ioctl.c index 546ea3d58fb4..fbc09dab1f85 100644 --- a/fs/fuse/ioctl.c +++ b/fs/fuse/ioctl.c @@ -286,11 +286,11 @@ long fuse_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg, in_iovs + out_iovs > FUSE_IOCTL_MAX_IOV) goto out; - vaddr = kmap_atomic(ap.pages[0]); + vaddr = kmap_local_page(ap.pages[0]); err = fuse_copy_ioctl_iovec(fm->fc, iov_page, vaddr, transferred, in_iovs + out_iovs, (flags & FUSE_IOCTL_COMPAT) != 0); - kunmap_atomic(vaddr); + kunmap_local(vaddr); if (err) goto out; |