]> git.baikalelectronics.ru Git - kernel.git/commit
Lock splice_read and splice_write functions
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 15 Oct 2012 21:20:17 +0000 (17:20 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 28 Oct 2012 17:59:37 +0000 (10:59 -0700)
commitc5e81ec8a981e75efdbb64dd1bfb33737e4a39b8
tree8db002bfdbaec616392f563d96621bfd5fbcfcd5
parentf23a863e61d3524fa7b038c2e55b84cfdae05227
Lock splice_read and splice_write functions

Functions generic_file_splice_read and generic_file_splice_write access
the pagecache directly. For block devices these functions must be locked
so that block size is not changed while they are in progress.

This patch is an additional fix for commit bd501f594d9c ("Fix a crash
when block device is read and block size is changed at the same time")
that locked aio_read, aio_write and mmap against block size change.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/block_dev.c