From: Miklos Szeredi Date: Mon, 7 Jul 2014 13:28:51 +0000 (+0200) Subject: fuse: avoid scheduling while atomic X-Git-Tag: omap-for-v3.17/fixes-against-rc2~288^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c55a01d360afafcd52bc405c044a6ebf5de436d5;p=pandora-kernel.git fuse: avoid scheduling while atomic As reported by Richard Sharpe, an attempt to use fuse_notify_inval_entry() triggers complains about scheduling while atomic: BUG: scheduling while atomic: fuse.hf/13976/0x10000001 This happens because fuse_notify_inval_entry() attempts to allocate memory with GFP_KERNEL, holding "struct fuse_copy_state" mapped by kmap_atomic(). Introduced by commit 58bda1da4b3c "fuse/dev: use atomic maps" Fix by moving the map/unmap to just cover the actual memcpy operation. Original patch from Maxim Patlasov Reported-by: Richard Sharpe Signed-off-by: Miklos Szeredi Cc: # v3.15+ --- Reading git-diff-tree failed