X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fllite%2Frw26.c;h=8fd227eee9badc3d31269be62b36a2e7584af07e;hp=815ab139fb9076c36a9f022971a21436bdbac5c2;hb=5bc1fe092cba04d0e067214e7c2b0b756ba29843;hpb=896ff00276afd83efb7523f61807feb63e6a70d5 diff --git a/lustre/llite/rw26.c b/lustre/llite/rw26.c index 815ab13..8fd227e 100644 --- a/lustre/llite/rw26.c +++ b/lustre/llite/rw26.c @@ -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; }