Return-Path: Received: from mx2.netapp.com ([216.240.18.37]:3678 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757196Ab1ETUNC (ORCPT ); Fri, 20 May 2011 16:13:02 -0400 From: bjschuma@netapp.com To: bfields@fieldses.org Cc: linux-nfs@vger.kernel.org, Bryan Schumaker Subject: [PATCH v2 0/2] NFSD: add FREE_STATEID and TEST_STATEID operations Date: Fri, 20 May 2011 16:12:58 -0400 Message-Id: <1305922380-8162-1-git-send-email-bjschuma@netapp.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: Content-Type: text/plain MIME-Version: 1.0 From: Bryan Schumaker These patches add FREE_STATEID and TEST_STATEID to the NFS server. I appreciate any comments, especially if there is a better way of doing things. v2: - FREE_STATEID - Free open, lock, and delegation state ids correctly - Use the check_for_locks() function to check for locks - TEST_STATEID - Remove openmode check - Sanity check on size of stateid list - Delay decoding stateid list until encoding the reply v3: - FREE_STATEID - Open stateids and delegations are never freeable (return nfserr_locks_held) - TEST_STATEID - Remove unused arguments from a function call - Store and use the HAS_SESSION flag for validating stateids Thanks! - Bryan