Skip to content

Commit 3ad99be

Browse files
goldwynrkdave
authored andcommitted
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 <[email protected]> Signed-off-by: Goldwyn Rodrigues <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 8cecd0b commit 3ad99be

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/iomap/direct-io.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,6 @@ iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter,
416416
struct blk_plug plug;
417417
struct iomap_dio *dio;
418418

419-
lockdep_assert_held(&inode->i_rwsem);
420-
421419
if (!count)
422420
return 0;
423421

0 commit comments

Comments
 (0)