On Tue, 2012-05-15 at 23:38 +0800, Peng Tao wrote: > Signed-off-by: Peng Tao <tao.peng@xxxxxxx> > --- > fs/nfs/direct.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c > index a485560..2cf3b45 100644 > --- a/fs/nfs/direct.c > +++ b/fs/nfs/direct.c > @@ -866,6 +866,7 @@ ssize_t nfs_file_direct_read(struct kiocb *iocb, const struct iovec *iov, > ssize_t retval = -EINVAL; > struct file *file = iocb->ki_filp; > struct address_space *mapping = file->f_mapping; > + struct blk_plug plug; > size_t count; > > count = iov_length(iov, nr_segs); > @@ -886,7 +887,9 @@ ssize_t nfs_file_direct_read(struct kiocb *iocb, const struct iovec *iov, > > task_io_account_read(count); > > + blk_start_plug(&plug); > retval = nfs_direct_read(iocb, iov, nr_segs, pos); > + blk_finish_plug(&plug); > if (retval > 0) > iocb->ki_pos = pos + retval; > Ditto. This is not generic... -- Trond Myklebust Linux NFS client maintainer NetApp Trond.Myklebust@xxxxxxxxxx www.netapp.com ��.n��������+%������w��{.n�����{��w���jg��������ݢj����G�������j:+v���w�m������w�������h�����٥