iomap: remove lockdep_assert_held()
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Sat, 30 Nov 2019 15:59:25 +0000 (09:59 -0600)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 11:12:53 +0000 (13:12 +0200)
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>
fs/iomap/direct-io.c

index f88ba6e7f6af897e80209d3fb10aaf0dbc450655..e4addfc58107032f28303d98ae2a130dd1245c47 100644 (file)
@@ -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;