Return-Path: Received: from mail-it0-f67.google.com ([209.85.214.67]:35915 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933182AbcIGSBz (ORCPT ); Wed, 7 Sep 2016 14:01:55 -0400 Received: by mail-it0-f67.google.com with SMTP id i184so2146299itf.3 for ; Wed, 07 Sep 2016 11:01:55 -0700 (PDT) From: Trond Myklebust To: anna.schumaker@netapp.com Cc: linux-nfs@vger.kernel.org Subject: [PATCH v2 0/7] Fix delegation behaviour when server revokes some state Date: Wed, 7 Sep 2016 14:01:20 -0400 Message-Id: <1473271287-43478-1-git-send-email-trond.myklebust@primarydata.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: According to RFC5661, if any of the SEQUENCE status bits SEQ4_STATUS_EXPIRED_ALL_STATE_REVOKED, SEQ4_STATUS_EXPIRED_SOME_STATE_REVOKED, SEQ4_STATUS_ADMIN_STATE_REVOKED, or SEQ4_STATUS_RECALLABLE_STATE_REVOKED are set, then we need to use TEST_STATEID to figure out which stateids have been revoked, so we can acknowledge the loss of state using FREE_STATEID. While we already do this for open and lock state, we have not been doing so for all the delegations. v2: nfs_v4_2_minor_ops needs to set .test_and_free_expired too Trond Myklebust (7): NFSv4.1: Don't check delegations that are already marked as revoked NFSv4.1: Allow test_stateid to handle session errors without waiting NFSv4.1: Add a helper function to deal with expired stateids NFSv4.x: Allow callers of nfs_remove_bad_delegation() to specify a stateid NFSv4.1: Test delegation stateids when server declares "some state revoked" NFSv4.1: Deal with server reboots during delegation expiration recovery NFSv4.1: Don't recheck delegations that have already been checked fs/nfs/delegation.c | 153 +++++++++++++++++++++++++++++++-- fs/nfs/delegation.h | 6 +- fs/nfs/flexfilelayout/flexfilelayout.c | 2 +- fs/nfs/nfs4_fs.h | 3 + fs/nfs/nfs4proc.c | 96 +++++++++++++++------ fs/nfs/nfs4state.c | 17 ++-- 6 files changed, 231 insertions(+), 46 deletions(-) -- 2.7.4