Whamcloud - gitweb
LU-13196 llite: Remove mutex on dio read
[fs/lustre-release.git] / lustre / llite / rw26.c
index 815ab13..8fd227e 100644 (file)
@@ -436,13 +436,6 @@ ll_direct_IO_impl(struct kiocb *iocb, struct iov_iter *iter, int rw)
        LASSERT(aio);
        LASSERT(aio->cda_iocb == iocb);
 
-       /* 0. Need locking between buffered and direct access. and race with
-        *    size changing by concurrent truncates and writes.
-        * 1. Need inode mutex to operate transient pages.
-        */
-       if (rw == READ)
-               inode_lock(inode);
-
        while (iov_iter_count(iter)) {
                struct ll_dio_pages pvec = { .ldp_aio = aio };
                struct page **pages;
@@ -513,9 +506,6 @@ out:
                result = -EIOCBQUEUED;
        }
 
-       if (rw == READ)
-               inode_unlock(inode);
-
        return result;
 }