[PATCH 0/2] Fix bug that client use a invaild delegation

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

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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