]> 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)
commitddf7ec10daf5669058ebc4b1dc02aede0ff81248
tree8db002bfdbaec616392f563d96621bfd5fbcfcd5
parent2414339af213557c2bad239eb711a33a678f4c19
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 cdab3ea72cc3 ("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