Skip to content

Commit

Permalink
iomap: remove lockdep_assert_held()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Goldwyn Rodrigues authored and David Sterba committed May 25, 2020
1 parent 8cecd0b commit 3ad99be
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/iomap/direct-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 3ad99be

Please sign in to comment.