Re: [PATCH 1/1] NFSv4.1 cleanup DS stateid error handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2012-03-09 at 14:31 -0800, Fred Isaman wrote:
> On Thu, Mar 8, 2012 at 8:03 AM,  <andros@xxxxxxxxxx> wrote:
> > From: Andy Adamson <andros@xxxxxxxxxx>
> >
> > The error handler nfs4_state parameter is never NULL in the pNFS case as
> > the open_context must carry an nfs_state.
> >
> 
> 
> Note Trond's argument is that with commit the state is avail for the
> caller, so it need not be NULL.
> But the caller filelayout_commit_done_cb() needs to be adjusted.
> Currently commit to ds oopses
> due to that.

Are you sure? As far as I can see, filelayout_commit_pagelist _does_
call nfs_init_commit(), which again sets the data->args.context.
Later, filelayout_commit_done_cb calls filelayout_async_handle_error()
using the data->args.context->state argument.

How is that failing to provide a valid open state argument?

-- 
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�����٥



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux