diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2019-11-30 09:59:25 -0600 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-05-25 13:12:53 +0200 |
commit | 3ad99bec6e82e32fa9faf2f84e74b134586b46f7 (patch) | |
tree | 977c4f3e7b12977e4356669947504a6e9badb601 /fs/iomap | |
parent | 8cecd0ba854799cda72d03a470e7de9eed3ed6c4 (diff) |
iomap: remove lockdep_assert_held()
Filesystems such as btrfs can perform direct I/O without holding the
inode->i_rwsem in some of the cases like writing within i_size. So,
remove the check for lockdep_assert_held() in iomap_dio_rw().
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/iomap')
-rw-r--r-- | fs/iomap/direct-io.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/iomap/direct-io.c b/fs/iomap/direct-io.c index f88ba6e7f6af..e4addfc58107 100644 --- a/fs/iomap/direct-io.c +++ b/fs/iomap/direct-io.c @@ -416,8 +416,6 @@ iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, struct blk_plug plug; struct iomap_dio *dio; - lockdep_assert_held(&inode->i_rwsem); - if (!count) return 0; |