Return-Path: linux-nfs-owner@vger.kernel.org Received: from mail-ee0-f46.google.com ([74.125.83.46]:53068 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751756Ab2AVSnP (ORCPT ); Sun, 22 Jan 2012 13:43:15 -0500 Received: by eekc14 with SMTP id c14so1081297eek.19 for ; Sun, 22 Jan 2012 10:43:13 -0800 (PST) From: Tigran Mkrtchyan To: linux-nfs@vger.kernel.org, bfields@fieldses.org Cc: Tigran Mkrtchyan Subject: [PATH v7 00/10] handle curruent stateid Date: Sun, 22 Jan 2012 19:45:59 +0100 Message-Id: <1327257968-14522-1-git-send-email-tigran.mkrtchyan@desy.de> Sender: linux-nfs-owner@vger.kernel.org List-ID: From: Tigran Mkrtchyan The same as v6, expect that the last patch changes current_stateid in compoind from reference to a value. As patches have to be squashed anyway this aproach is simple that re-write all. This is ready-to-go patch set. Rebased to Bruce's nfsd-next. Implemented for: OPEN OPENDOWNGRADE CLOSE LOCK LOCKU DELEGRETURN FREE_STATEID SETATTR READ WRITE SAVEFH RESTOREFH PUTFH PUTROOTFH PUTPUBFH LOOKUP CREATE Coresponding pynfs test already submited. Tigran. Tigran Mkrtchyan (10): nfsd4: initialize current stateid at compile time nfsd41: handle current stateid in open and close nfsd41: handle current stateid on lock and locku nfsd41: consume current stateid on read and write nfsd41: mark PUTFH, PUTPUBFH and PUTROOTFH to clear current stateid nfsd41: save and restore current stateid with current fh nfsd41: mark LOOKUP, LOOKUPP and CREATE to invalidate current stateid nfsd41: handle current stateid in SETATTR and FREE_STATEID nfsd41: consume current stateid on DELEGRETURN and OPENDOWNGRADE nfsd41: use current stateid by value fs/nfsd/current_stateid.h | 28 +++++++++++ fs/nfsd/nfs4proc.c | 61 +++++++++++++++++++++---- fs/nfsd/nfs4state.c | 110 ++++++++++++++++++++++++++++++++++++++++++++- fs/nfsd/xdr4.h | 4 ++ 4 files changed, 192 insertions(+), 11 deletions(-) create mode 100644 fs/nfsd/current_stateid.h -- 1.7.7.5