]> git.baikalelectronics.ru Git - kernel.git/commit
dax: assert that i_rwsem is held exclusive for writes
authorChristoph Hellwig <hch@lst.de>
Wed, 8 Feb 2017 19:43:13 +0000 (14:43 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 8 Feb 2017 19:43:13 +0000 (14:43 -0500)
commit0c382e7065599d8f05d67da4e7dcc7e7ac168114
tree1d402c8b9dbc959dfc546a1cef16581b2b09a711
parent9638c25d985fd07b594bc68694ff7ca58d1937f7
dax: assert that i_rwsem is held exclusive for writes

Make sure all callers follow the same locking protocol, given that DAX
transparantly replaced the normal buffered I/O path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/dax.c