]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: don't use atomic kmap
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 12 Jul 2010 12:41:40 +0000 (14:41 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Mon, 12 Jul 2010 12:41:40 +0000 (14:41 +0200)
commit94b397452edfcfd9ba27b29b75a2ed5f872ef2df
tree83367ca6286f3ebfee8b94533152848e7529e9fb
parentf8f860ececc438a8470f53624c260a592cf08f5c
fuse: don't use atomic kmap

Don't use atomic kmap for mapping userspace buffers in device
read/write/splice.

This is necessary because the next patch (adding store notify)
requires that caller of fuse_copy_page() may sleep between
invocations.  The simplest way to ensure this is to change the atomic
kmaps to non-atomic ones.

Thankfully architectures where kmap() is not a no-op are going out of
fashion, so we can ignore the (probably negligible) performance impact
of this change.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/dev.c