aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4state.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-16Merge tag 'nfs-for-6.9-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds1-5/+7
2024-03-09NFSv4: nfs4_do_open() is incorrectly triggering state recoveryTrond Myklebust1-5/+7
2024-02-05nfs: adapt to breakup of struct file_lockJeff Layton1-2/+2
2024-02-05nfs: convert to using new filelock helpersJeff Layton1-9/+9
2023-09-27NFSv4: Fix a state manager thread deadlock regressionTrond Myklebust1-12/+26
2023-09-27NFSv4: Fix a nfs4_state_manager() raceTrond Myklebust1-0/+7
2023-06-19NFSv4: Clean up some shutdown loopsBenjamin Coddington1-0/+3
2023-04-21NFS: Cleanup unused rpc_clnt variableBenjamin Coddington1-4/+0
2023-04-10NFSv4.1: Always send a RECLAIM_COMPLETE after establishing leaseTrond Myklebust1-0/+4
2022-12-13Merge tag 'nfs-for-6.2-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds1-1/+4
2022-12-06NFSv4.x: Fail client initialisation if state manager thread can't runTrond Myklebust1-0/+2
2022-12-06NFS: avoid spurious warning of lost lock that is being unlocked.NeilBrown1-1/+2
2022-11-30nfs: use locks_inode_context helperJeff Layton1-1/+1
2022-10-27NFSv4.1: We must always send RECLAIM_COMPLETE after a rebootTrond Myklebust1-0/+1
2022-10-27NFSv4.1: Handle RECLAIM_COMPLETE trunking errorsTrond Myklebust1-0/+1
2022-10-13Merge tag 'nfs-for-6.1-1' of git://git.linux-nfs.org/projects/anna/linux-nfsLinus Torvalds1-6/+4
2022-10-03NFSv4: Directly use ida_alloc()/free()Bo Liu1-6/+4
2022-09-07freezer,sched: Rewrite core freezer logicPeter Zijlstra1-1/+2
2022-06-30NFS: restore module put when manager exits.NeilBrown1-0/+1
2022-05-31NFSv4: Fix free of uninitialized nfs4_label on referral lookup.Benjamin Coddington1-1/+8
2022-05-17NFS: Improve warning message when locks are lost.NeilBrown1-5/+15
2022-03-29Merge tag 'nfs-for-5.18-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds1-10/+49
2022-03-13NFSv4: keep state manager thread active if swap is enabledNeilBrown1-7/+33
2022-02-28NFSD: Remove svc_serv_ops::svo_moduleChuck Lever1-1/+0
2022-02-25NFS: Convert GFP_NOFS to GFP_KERNELTrond Myklebust1-1/+1
2022-02-25NFSv4: Charge NFSv4 open state trackers to kmemcgTrond Myklebust1-3/+4
2022-02-25NFSv4: Protect the state recovery thread against direct reclaimTrond Myklebust1-0/+12
2022-01-25Merge tag 'nfs-for-5.17-1' of git://git.linux-nfs.org/projects/anna/linux-nfsLinus Torvalds1-1/+5
2022-01-17Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+1
2022-01-13NFSv4.1 query for fs_location attr on a new file systemOlga Kornievskaia1-1/+2
2022-01-12NFSv4 remove zero number of fs_locations entries error checkOlga Kornievskaia1-0/+3
2021-12-13exit: Rename module_put_and_exit to module_put_and_kthread_exitEric W. Biederman1-1/+1
2021-11-17NFSv4.1: handle NFS4ERR_NOSPC by CREATE_SESSIONOlga Kornievskaia1-0/+4
2021-10-03NFS: Fix a few more clear_bit() instances that need release semanticsTrond Myklebust1-4/+1
2021-05-07Merge tag 'nfs-for-5.13-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds1-1/+1
2021-05-07treewide: remove editor modelines and cruftMasahiro Yamada1-6/+0
2021-04-05NFS: Fix up incorrect documentationTrond Myklebust1-1/+1
2021-02-01nfs: Fix fall-through warnings for ClangGustavo A. R. Silva1-0/+1
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-7/+7
2020-07-29NFSv4: Use sequence counter with associated spinlockAhmed S. Darwish1-1/+1
2020-05-11nfs: fix NULL deference in nfs4_get_valid_delegationJ. Bruce Fields1-1/+1
2020-03-16NFSv4: Add support for CB_RECALL_ANY for flexfiles layoutsTrond Myklebust1-2/+22
2020-02-04NFSv4.0: nfs4_do_fsinfo() should not do implicit lease renewalsRobert Milkowski1-3/+1
2020-02-03NFSv4: Try to return the delegation immediately when marked for return on closeTrond Myklebust1-0/+1
2020-01-15NFS4: Remove unneeded semicolonzhengbin1-1/+1
2019-11-18NFS4: Trace lock reclaimsChuck Lever1-0/+1
2019-11-18NFS4: Trace state recovery operationChuck Lever1-0/+3
2019-11-06Merge branch 'linux-ssc-for-5.5'Trond Myklebust1-5/+35
2019-11-03NFS: nfs_inode_find_state_and_recover() fix stateid matchingTrond Myklebust1-3/+4
2019-10-09NFS: handle source server rebootOlga Kornievskaia1-5/+21
2019-10-09NFS: skip recovery of copy open on dest serverOlga Kornievskaia1-0/+14
2019-09-20NFSv4: Handle NFS4ERR_OLD_STATEID in CLOSE/OPEN_DOWNGRADETrond Myklebust1-16/+0
2019-08-21NFSv4: Fix a memory leak bugWenwen Wang1-2/+4
2019-08-07NFSv4: Ensure state recovery handles ETIMEDOUT correctlyTrond Myklebust1-2/+5
2019-08-04NFSv4: Fix a potential sleep while atomic in nfs4_do_reclaim()Trond Myklebust1-5/+22
2019-08-04NFSv4: When recovering state fails with EAGAIN, retry the same recoveryTrond Myklebust1-1/+8
2019-08-04NFSv4: Print an error in the syslog when state is marked as irrecoverableTrond Myklebust1-2/+4
2019-07-18NFSv4: Don't use the zero stateid with layoutgetTrond Myklebust1-2/+1
2019-07-13nfs4.0: Refetch lease_time after clientid updateDonald Buczek1-22/+22
2019-07-13nfs4: Rename nfs41_setup_state_renewalDonald Buczek1-2/+2
2019-05-09NFSv4: don't mark all open state for recovery when handling recallable state ...Scott Mayhew1-2/+1
2019-05-09NFS4: Fix v4.0 client state corruption when mountZhangXiaoxu1-0/+4
2019-02-20NFS: Fix up documentation warningsTrond Myklebust1-0/+1
2019-01-02NFSv4.2 fix async copy reboot recoveryOlga Kornievskaia1-1/+1
2018-12-19NFS/NFSD/SUNRPC: replace generic creds with 'struct cred'.NeilBrown1-45/+47
2018-12-19NFS/SUNRPC: don't lookup machine credential until rpcauth_bindcred().NeilBrown1-17/+4
2018-12-19NFSv4: don't require lock for get_renew_cred or get_machine_credNeilBrown1-16/+10
2018-12-19NFSv4: add cl_root_cred for use when machine cred is not available.NeilBrown1-8/+12
2018-11-19NFSv4: Fix a NFSv4 state manager deadlockTrond Myklebust1-5/+11
2018-11-12NFSv4: Ensure that the state manager exits the loop on SIGKILLTrond Myklebust1-1/+1
2018-11-12NFSv4: Don't exit the state manager without clearing NFS4CLNT_MANAGER_RUNNINGTrond Myklebust1-3/+5
2018-09-30NFSv4: Split out NFS v4.2 copy completion functionsAnna Schumaker1-15/+26
2018-09-30NFS: Reduce indentation of nfs4_recovery_handle_error()Anna Schumaker1-32/+32
2018-09-30NFS: Reduce indentation of the switch statement in nfs4_reclaim_open_state()Anna Schumaker1-37/+33
2018-09-30NFS: Split out the body of nfs4_reclaim_open_state()Anna Schumaker1-36/+47
2018-09-30NFSv4: Convert struct nfs4_state to use refcount_tTrond Myklebust1-4/+4
2018-09-30NFSv4: Convert open state lookup to use RCUTrond Myklebust1-6/+6
2018-09-30NFS: Convert lookups of the open context to RCUTrond Myklebust1-6/+6
2018-09-14NFSv4.1 fix infinite loop on I/O.Trond Myklebust1-0/+2
2018-08-13NFSv4: Don't busy wait if NFSv4 session draining is interruptedTrond Myklebust1-5/+13
2018-08-13NFS recover from destination server reboot for copiesOlga Kornievskaia1-0/+16
2018-08-08NFS: Mark expected switch fall-throughsGustavo A. R. Silva1-0/+6
2018-05-31pnfs: Add LAYOUTGET to OPEN of a new fileFred Isaman1-0/+8
2018-04-10nfs: Use ida_simple APIMatthew Wilcox1-12/+10
2018-01-14NFSv4: always set NFS_LOCK_LOST when a lock is lost.NeilBrown1-1/+4
2017-11-29NFSv4: Ensure gcc 4.4.4 can compile initialiser for "invalid_stateid"Trond Myklebust1-2/+2
2017-11-17NFSv4: Replace closed stateids with the "invalid special stateid"Trond Myklebust1-0/+8
2017-11-17NFSv4: Check the open stateid when searching for expired stateTrond Myklebust1-0/+5
2017-11-17NFSv4: Don't try to CLOSE if the stateid 'other' field has changedTrond Myklebust1-2/+7
2017-11-17NFSv4: Retry CLOSE and DELEGRETURN on NFS4ERR_OLD_STATEID.Trond Myklebust1-0/+16
2017-11-17NFSv4: Fix OPEN / CLOSE raceTrond Myklebust1-0/+1
2017-11-17fs, nfs: convert nfs_client.cl_count from atomic_t to refcount_tElena Reshetova1-3/+3
2017-11-17fs, nfs: convert nfs4_lock_state.ls_count from atomic_t to refcount_tElena Reshetova1-4/+4
2017-07-13Merge tag 'nfs-for-4.13-1' of git://git.linux-nfs.org/projects/anna/linux-nfsLinus Torvalds1-5/+11
2017-07-13NFSv4.1: Handle EXCHGID4_FLAG_CONFIRMED_R during NFSv4.1 migrationChuck Lever1-5/+11
2017-06-27NFS: Trunking detection should handle ERESTARTSYS/EINTRTrond Myklebust1-0/+2
2017-05-05NFSv4.1: RECLAIM_COMPLETE must handle NFS4ERR_CONN_NOT_BOUND_TO_SESSIONTrond Myklebust1-3/+7
2017-01-30NFSv4: Fix warning for using 0 as NULLWei Yongjun1-1/+1
2017-01-26nfs: Fix "Don't increment lock sequence ID after NFS4ERR_MOVED"Chuck Lever1-0/+1
2017-01-13NFSv4: Fix client recovery when server reboots multiple timesTrond Myklebust1-1/+0
2016-12-19NFS: Don't disconnect open-owner on NFS4ERR_BAD_SEQIDNeilBrown1-16/+13
2016-12-19NFSv4: ensure __nfs4_find_lock_state returns consistent result.NeilBrown1-8/+20
2016-12-04NFSv4.1: Don't schedule lease recovery in nfs4_schedule_session_recovery()Trond Myklebust1-1/+1
2016-12-01NFS: discard nfs_lockowner structure.NeilBrown1-1/+1
2016-12-01NFSv4: enhance nfs4_copy_lock_stateid to use a flock stateid if there is oneNeilBrown1-5/+9
2016-12-01NFSv4: change nfs4_select_rw_stateid to take a lock_context inplace of lock_o...NeilBrown1-6/+5
2016-11-18NFSv4.1: Handle NFS4ERR_OLD_STATEID in nfs4_reclaim_open_stateBenjamin Coddington1-0/+1
2016-09-27NFSv4: If recovery failed for a specific open stateid, then don't retryTrond Myklebust1-7/+11
2016-09-27NFSv4: Open state recovery must account for file permission changesTrond Myklebust1-0/+3
2016-09-27NFSv4: nfs_inode_find_state_and_recover() should check all stateidsTrond Myklebust1-5/+39
2016-09-27NFSv4.1: Test delegation stateids when server declares "some state revoked"Trond Myklebust1-8/+9
2016-09-27NFSv4.1: Don't deadlock the state manager on the SEQUENCE status flagsTrond Myklebust1-1/+11
2016-08-05NFSv4: Cleanup the setting of the nfs4 lease periodTrond Myklebust1-6/+3
2016-06-24nfs4: Fix potential use after free of state in nfs4_do_reclaim.Oleg Drokin1-1/+1
2016-05-27nfs: fix anonymous member initializer build failure with older compilersLinus Torvalds1-1/+1
2016-05-17NFSv4: Use the right stateid for delegations in setattr, read and writeTrond Myklebust1-4/+9
2016-05-17NFSv4: Label stateids with the typeTrond Myklebust1-1/+4
2015-10-02NFSv4: Don't try to reclaim unused state ownersTrond Myklebust1-1/+2
2015-09-17Failing to send a CLOSE if file is opened WRONLY and server reboots on a 4.x ...Olga Kornievskaia1-1/+1
2015-08-17NFS: Remove nfs41_server_notify_{target|highest}_slotid_update()Anna Schumaker1-11/+1
2015-07-05NFSv4.1: Handle SEQ4_STATUS_BACKCHANNEL_FAULT correctlyTrond Myklebust1-3/+3
2015-07-05NFSv4.1: Handle SEQ4_STATUS_RECALLABLE_STATE_REVOKED status bit correctlyTrond Myklebust1-2/+4
2015-07-05NFSv4.1: Handle SEQ4_STATUS_EXPIRED_SOME_STATE_REVOKED status bit correctly.Trond Myklebust1-4/+13
2015-06-02NFSv4: Always drain the slot table before re-establishing the leaseTrond Myklebust1-1/+1
2015-06-01fixing infinite OPEN loop in 4.0 stateid recoveryOlga Kornievskaia1-0/+2
2015-04-26Merge tag 'nfs-for-4.1-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds1-1/+1
2015-04-23NFS: Move nfs_idmap.h into fs/nfs/Anna Schumaker1-1/+1
2015-04-15VFS: normal filesystems (and lustre): d_inode() annotationsDavid Howells1-2/+2
2015-03-03NFSv4.1: Clear the old state by our client id before establishing a new leaseTrond Myklebust1-1/+5
2015-03-03NFSv4: Fix a race in NFSv4.1 server trunking discoveryTrond Myklebust1-2/+12
2015-02-11Merge tag 'nfs-for-3.20-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds1-12/+19
2015-01-23NFSv4: Check for NULL argument in nfs_*_seqid() functionsTrond Myklebust1-7/+14
2015-01-23NFSv4: Convert nfs_alloc_seqid() to return an ERR_PTR() if allocation failsTrond Myklebust1-5/+5
2015-01-16locks: add a dedicated spinlock to protect i_flctx listsJeff Layton1-4/+4
2015-01-16locks: convert posix locks to file_lock_contextJeff Layton1-42/+10
2015-01-16locks: move flock locks to file_lock_contextJeff Layton1-2/+40
2014-09-30Merge branch 'bugfixes' into linux-nextTrond Myklebust1-11/+6
2014-09-28NFSv4: fix open/lock state recovery error handlingTrond Myklebust1-10/+6
2014-09-28NFSv4: Fix lock recovery when CREATE_SESSION/SETCLIENTID_CONFIRM failsTrond Myklebust1-1/+0
2014-09-24Fixing lease renewalOlga Kornievskaia1-0/+1
2014-09-08nfs: revert "nfs4: queue free_lock_state job submission to nfsiod"Jeff Layton1-18/+6
2014-08-13Merge tag 'nfs-for-3.17-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds1-42/+27
2014-07-16sched: Remove proliferation of wait_on_bit() action functionsNeilBrown1-2/+2
2014-07-12nfs4: queue free_lock_state job submission to nfsiodJeff Layton1-6/+18
2014-07-12nfs4: treat lock owners as opaque valuesJeff Layton1-36/+9
2014-06-10Merge tag 'nfs-for-3.16-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds1-3/+3
2014-06-05NFS: Use raw_write_seqcount_begin/end int nfs4_reclaim_open_stateTrond Myklebust1-3/+3
2014-04-18arch: Mass conversion of smp_mb__*()Peter Zijlstra1-2/+2
2014-03-19NFSv4: Ensure we respect soft mount timeouts during trunking discoveryTrond Myklebust1-1/+3
2014-03-17Merge branch 'devel' into linux-nextTrond Myklebust1-1/+1
2014-03-05NFSv4: Fix the return value of nfs4_select_rw_stateidTrond Myklebust1-11/+3
2014-02-19NFSv4: Clear the open state flags if the new stateid does not matchTrond Myklebust1-1/+1
2014-02-19NFS fix error return in nfs4_select_rw_stateidAndy Adamson1-1/+4
2014-01-05point to the right include file in a comment (left over from a9004abc3)Toralf Förster1-2/+2
2013-11-16Merge tag 'nfs-for-3.13-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds1-1/+6
2013-11-15tree-wide: use reinit_completion instead of INIT_COMPLETIONWolfram Sang1-1/+1
2013-11-13nfs: don't retry detect_trunking with RPC_AUTH_UNIX more than onceJeff Layton1-1/+6
2013-10-31nfs: fix inverted test for delegation in nfs4_reclaim_open_stateJeff Layton1-1/+1
2013-10-28NFS: Fix possible endless state recovery waitChuck Lever1-4/+6
2013-10-28NFS: Handle SEQ4_STATUS_LEASE_MOVEDChuck Lever1-2/+3
2013-10-28NFS: Support NFS4ERR_LEASE_MOVED recovery in state managerChuck Lever1-1/+72
2013-10-28NFS: Add basic migration support to state manager threadChuck Lever1-3/+158
2013-10-28NFSv4 Remove zeroing state kern warningsAndy Adamson1-8/+5
2013-09-04NFSv4: Don't try to recover NFSv4 locks when they are lost.NeilBrown1-3/+11
2013-09-04NFS: Fix warning introduced by NFSv4.0 transport blocking patchesChuck Lever1-2/+2
2013-09-03NFS: Update session draining barriers for NFSv4.0 transport blockingChuck Lever1-27/+34
2013-09-03NFS: Enable slot table helpers for NFSv4.0Chuck Lever1-9/+0
2013-08-22NFS: remove incorrect "Lock reclaim failed!" warning.NeilBrown1-7/+9
2013-08-07NFS: Never use user credentials for lease renewalChuck Lever1-49/+8
2013-08-07NFS: Use root's credential for lease management when keytab is missingChuck Lever1-1/+18
2013-07-23NFS: Fix return type of nfs4_end_drain_session() stubChuck Lever1-1/+1
2013-07-09Merge tag 'nfs-for-3.11-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds1-15/+21
2013-07-03drivers: avoid parsing names as kthread_run() format stringsKees Cook1-1/+1
2013-06-29locks: protect most of the file_lock handling with i_lockJeff Layton1-4/+4
2013-06-20NFSv4.1 end back channel session drainingAndy Adamson1-12/+11
2013-06-06NFSv4.1: Ensure that reclaim_complete uses the right credentialTrond Myklebust1-3/+10
2013-05-20NFSv4.1 Fix a pNFS session draining deadlockAndy Adamson1-8/+7
2013-05-06NFSv4.1: Ensure that we free the lock stateid on the serverTrond Myklebust1-4/+7
2013-04-23Merge branch 'bugfixes' into linux-nextTrond Myklebust1-1/+7
2013-04-23Merge branch 'rpcsec_gss-from_cel' into linux-nextTrond Myklebust1-49/+11
2013-04-22NFS: Retry SETCLIENTID with AUTH_SYS instead of AUTH_NONEChuck Lever1-1/+1
2013-04-20NFSv4: Use the open stateid if the delegation has the wrong modeTrond Myklebust1-1/+5
2013-04-08NFSv4: Handle timeouts correctly when probing for lease validityTrond Myklebust1-0/+4
2013-04-05NFSv4: Fix a memory leak in nfs4_discover_server_trunkingTrond Myklebust1-1/+7
2013-04-05NFSv4: Don't clear the machine cred when client establish returns EACCESTrond Myklebust1-16/+0
2013-04-05NFSv4: Fix issues in nfs4_discover_server_trunkingTrond Myklebust1-1/+6
2013-03-29NFS: Use "krb5i" to establish NFSv4 state whenever possibleChuck Lever1-32/+5
2013-03-28NFSv4: Fix another reboot recovery raceTrond Myklebust1-0/+2
2013-03-25NFSv4.1: Select the "most recent locking state" for read/write/setattr stateidsTrond Myklebust1-0/+2
2013-03-25NFSv4: Resend the READ/WRITE RPC call if a stateid change causes an errorTrond Myklebust1-9/+23
2013-03-25NFS: Don't accept more reads/writes if the open context recovery failedTrond Myklebust1-0/+16
2013-03-25NFSv4: Fail I/O if the state recovery fails irrevocablyTrond Myklebust1-5/+14
2013-02-11NFSv4: Ensure delegation recall and byte range lock removal don't conflictTrond Myklebust1-0/+1
2013-02-11NFSv4: Allow the state manager to mark an open_owner as being recoveredTrond Myklebust1-1/+9
2013-01-30NFSv4.1: Handle NFS4ERR_DELAY when resetting the NFSv4.1 sessionTrond Myklebust1-2/+12
2013-01-27NFSv4: Fix NFSv4 trunking discoveryTrond Myklebust1-6/+2
2012-12-13nfs: Remove unused list nfs4_clientid_listYanchuan Nian1-1/+0
2012-12-12SUNRPC handle EKEYEXPIRED in call_refreshresultAndy Adamson1-23/+0
2012-12-06NFSv4.1: Ensure smooth handover of slots from one task to the next waitingTrond Myklebust1-5/+1
2012-12-06NFSv4.1: Remove the 'FIFO' behaviour for nfs41_setup_sequenceTrond Myklebust1-3/+1