linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix bug that client use a invaild delegation
@ 2010-08-04  9:14 Bian Naimeng
  2010-08-04  9:15 ` [PATCH 1/2] Make lock inode before lock nfs4_state_owner Bian Naimeng
  2010-08-04  9:18 ` [PATCH 2/2] We should clear NFS_DELEGATED_STATE after return delegation Bian Naimeng
  0 siblings, 2 replies; 22+ messages in thread
From: Bian Naimeng @ 2010-08-04  9:14 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: linux-nfs

Hi all

  I find a bug at RHEL6Beta2. If client return nfsi->delegation, some open_stateid
 still have the NFS_DELEGATED_STATE bit, and another open process which has some
 owner will not clear this bit, it will not use the new open stateid to fill 
 state->stateid, just fill state->open_stateid. 
 Then other IO operation will use the old delegation, it will get NFS4ERR_BAD_STATEID.
 
  Thought my test program just FAIL at RHEL6Beta2, latest kernel is OK,
 but i thinks the latest kernel maybe have the some bug.

---

Bian Naimeng (2):
	[PATCH 1/2] Make lock inode before lock nfs4_state_owner
	[PATCH 2/2] We should clear NFS_DELEGATED_STATE after return delegation

 fs/nfs/nfs4proc.c  |   15 ++++++++++++++-
 fs/nfs/nfs4state.c |   16 +++++++++-------
 2 files changed, 23 insertions(+), 8 deletions(-)

-- 
Regards
Bian Naimeng


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2010-12-02  8:33 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-04  9:14 [PATCH 0/2] Fix bug that client use a invaild delegation Bian Naimeng
2010-08-04  9:15 ` [PATCH 1/2] Make lock inode before lock nfs4_state_owner Bian Naimeng
2010-08-04  9:18 ` [PATCH 2/2] We should clear NFS_DELEGATED_STATE after return delegation Bian Naimeng
2010-08-04 12:45   ` Trond Myklebust
2010-08-05  2:26     ` Bian Naimeng
2010-08-05 13:03       ` Trond Myklebust
2010-08-06  4:10         ` Bian Naimeng
2010-08-06 13:30           ` Trond Myklebust
2010-08-16  7:50             ` Bian Naimeng
2010-08-17 23:16               ` Trond Myklebust
2010-08-18  3:17                 ` Bian Naimeng
2010-08-23  7:43                   ` Bian Naimeng
2010-09-01  6:40                 ` Bian Naimeng
2010-09-07 22:04                   ` Trond Myklebust
2010-09-08  1:33                     ` Bian Naimeng
2010-09-08  1:57                       ` Trond Myklebust
2010-09-08  2:37                         ` Bian Naimeng
2010-09-08  3:11                         ` Bian Naimeng
2010-09-08 20:37                           ` Trond Myklebust
2010-09-09  1:29                             ` Bian Naimeng
2010-11-24  6:27                               ` Bian Naimeng
     [not found]                             ` <1283978245.2905.23.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2010-12-02  8:32                               ` Li Yewang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).