diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2014-07-07 15:28:51 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2014-07-07 15:28:51 +0200 |
commit | c55a01d360afafcd52bc405c044a6ebf5de436d5 (patch) | |
tree | f3aee71085c2c831563e06f0c78dfc21b931e342 /scripts/coccicheck | |
parent | 233a01fa9c4c7c41238537e8db8434667ff28a2f (diff) | |
download | op-kernel-dev-c55a01d360afafcd52bc405c044a6ebf5de436d5.zip op-kernel-dev-c55a01d360afafcd52bc405c044a6ebf5de436d5.tar.gz |
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 <mpatlasov@parallels.com>
Reported-by: Richard Sharpe <realrichardsharpe@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: <stable@vger.kernel.org> # v3.15+
Diffstat (limited to 'scripts/coccicheck')
0 files changed, 0 insertions, 0 deletions