aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/cache.c
AgeCommit message (Expand)AuthorFilesLines
2022-11-18treewide: use get_random_u32_below() instead of deprecated functionJason A. Donenfeld1-1/+1
2022-10-11treewide: use prandom_u32_max() when possible, part 1Jason A. Donenfeld1-1/+1
2022-05-19SUNRPC: Cache deferral injectionChuck Lever1-1/+17
2022-01-22proc: remove PDE_DATA() completelyMuchun Song1-12/+12
2021-09-03SUNRPC: improve error response to over-size gss credentialNeilBrown1-1/+1
2020-12-09sunrpc: clean-up cache downcallRoberto Bergantinos Corpas1-30/+11
2020-10-20sunrpc: raise kernel RPC channel buffer sizeRoberto Bergantinos Corpas1-1/+1
2020-09-25sunrpc: simplify do_cache_cleanJ. Bruce Fields1-7/+8
2020-09-25sunrpc: cache : Replace seq_printf with seq_putsXu Wang1-2/+2
2020-04-13SUNRPC/cache: Fix unsafe traverse caused double-free in cache_purgeYihao Wu1-2/+3
2020-03-16sunrpc: Add tracing for cache eventsTrond Myklebust1-9/+27
2020-03-16SUNRPC/cache: Allow garbage collection of invalid cache entriesTrond Myklebust1-17/+19
2020-03-16nfsd: export upcalls must not return ESTALE when mountd is downTrond Myklebust1-27/+26
2020-03-16sunrpc: Pass lockdep expression to RCU listsAmol Grover1-1/+2
2020-02-07Merge tag 'nfsd-5.6' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-22/+26
2020-02-04proc: convert everything to "struct proc_ops"Alexey Dobriyan1-23/+22
2020-01-22sunrpc: clean up cache entry add/remove from hashtableTrond Myklebust1-24/+26
2020-01-22sunrpc: Fix potential leaks in sunrpc_cache_unhash()Trond Myklebust1-0/+2
2019-12-18nfs: use time64_t internallyArnd Bergmann1-8/+8
2019-10-11sunrpc: fix crash when cache_head become valid before updatePavel Tikhomirov1-6/+0
2019-08-19sunrpc: add a new cache_detail operation for when a cache is flushedJeff Layton1-0/+3
2019-07-30SUNRPC: Track writers of the 'channel' file to improve cache_listeners_existDave Wysochanski1-4/+8
2019-07-10Merge tag 'nfsd-5.3' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-1/+0
2019-07-08sunrpc/cache: remove the exporting of cache_seq_nextDenis Efremov1-1/+0
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 363Thomas Gleixner1-3/+1
2019-04-24sunrpc/cache: handle missing listeners better.NeilBrown1-1/+3
2019-04-05sunrpc: don't mark uninitialised items as VALID.NeilBrown1-0/+3
2018-12-04sunrpc: fix cache_head leak due to queued requestVasily Averin1-1/+9
2018-10-29SUNRPC: Replace the cache_detail->hash_lock with a regular spinlockTrond Myklebust1-23/+23
2018-10-29SUNRPC: Remove non-RCU protected lookupTrond Myklebust1-57/+4
2018-10-29SUNRPC: Allow cache lookups to use RCU protection rather than the r/w spinlockTrond Myklebust1-14/+79
2018-10-03SUNRPC: Refactor sunrpc_cache_lookupTrond Myklebust1-8/+25
2018-06-12treewide: kzalloc() -> kcalloc()Kees Cook1-1/+1
2018-04-05Merge tag 'nfsd-4.17' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-16/+16
2018-03-26net: Use octal not symbolic permissionsJoe Perches1-5/+5
2018-03-19SUNRPC: cache: ignore timestamp written to 'flush' file.NeilBrown1-16/+16
2018-02-11vfs: do bulk POLL* -> EPOLL* replacementLinus Torvalds1-2/+2
2018-01-30Merge branch 'misc.poll' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-4/+4
2017-11-27sunrpc: make the function arg as constBhumika Goyal1-1/+1
2017-11-27net: annotate ->poll() instancesAl Viro1-4/+4
2017-03-01Merge tag 'nfs-for-4.11-1' of git://git.linux-nfs.org/projects/anna/linux-nfsLinus Torvalds1-46/+22
2017-02-28Merge tag 'nfsd-4.11' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-15/+38
2017-02-08sunrpc: use simple_read_from_buffer for reading cache flushKinglong Mee1-12/+3
2017-02-08sunrpc: update the comments of sunrpc proc pathKinglong Mee1-2/+2
2017-02-08sunrpc/nfs: cleanup procfs/pipefs entry in cache_detailKinglong Mee1-32/+17
2017-02-08SUNRPC: Drop all entries from cache_detail when cache_purge()Kinglong Mee1-15/+26
2017-01-31svcrpc: free contexts immediately on PROC_DESTROYNeil Brown1-0/+12
2017-01-14locking/atomic, kref: Add kref_read()Peter Zijlstra1-1/+1
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-09-27sunrpc: queue work on system_power_efficient_wqKe Wang1-2/+3
2016-07-13sunrpc: remove 'inuse' flag from struct cache_detail.NeilBrown1-1/+1
2016-04-04mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macrosKirill A. Shutemov1-2/+2
2016-03-17sunrpc/cache: drop reference when sunrpc_cache_pipe_upcall() detects a raceNeilBrown1-3/+3
2016-02-23sunrpc/cache: fix off-by-one in qword_get()Stefan Hajnoczi1-1/+1
2016-01-22wrappers for ->i_mutex accessAl Viro1-5/+5
2015-10-23sunrpc/cache: make cache flushing more reliable.Neil Brown1-13/+40
2015-08-13sunrpc: Switch to using hash list instead single listKinglong Mee1-29/+31
2015-08-13sunrpc/nfsd: Remove redundant code by exports seq_operations functionsKinglong Mee1-6/+9
2015-08-13sunrpc: Store cache_detail in seq_file's private directlyKinglong Mee1-15/+13
2015-04-15lib/string_helpers.c: change semantics of string_escape_memRasmus Villemoes1-3/+5
2015-03-08sunrpc: fix braino in ->poll()Al Viro1-1/+1
2014-12-09sunrpc/cache: convert to use string_escape_str()Andy Shevchenko1-20/+6
2014-05-08SUNRPC: Fix printk that is not only for nfsdKinglong Mee1-1/+1
2014-01-30Merge branch 'for-3.14' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-3/+1
2014-01-14net: replace macros net_random and net_srandom with direct calls to prandomAruna-Hewapathirane1-1/+1
2013-12-12net/sunrpc/cache: simplify code by using hex_pack_byte()Andy Shevchenko1-3/+1
2013-07-14Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-13/+5
2013-07-14rpc_create_*_dir: don't bother with qstrAl Viro1-13/+5
2013-07-01sunrpc: Don't schedule an upcall on a replaced cache entry.NeilBrown1-1/+2
2013-07-01net/sunrpc: xpt_auth_cache should be ignored when expired.NeilBrown1-6/+0
2013-07-01sunrpc/cache: ensure items removed from cache do not have pending upcalls.NeilBrown1-1/+5
2013-07-01sunrpc/cache: use cache_fresh_unlocked consistently and correctly.NeilBrown1-13/+7
2013-07-01sunrpc/cache: remove races with queuing an upcall.NeilBrown1-11/+29
2013-05-21sunrpc: the cache_detail in cache_is_valid is unused any morechaoting fan1-4/+4
2013-05-03Merge branch 'for-3.10' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-1/+3
2013-05-01Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-12/+12
2013-04-29lib, net: make isodigit() public and use itAndy Shevchenko1-1/+0
2013-04-09procfs: new helper - PDE_DATA(inode)Al Viro1-12/+12
2013-04-03SUNRPC/cache: add module_put() on error path in cache_open()Alexey Khoroshilov1-1/+3
2013-02-28Merge branch 'for-3.9' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-22/+29
2013-02-27hlist: drop the node parameter from iteratorsSasha Levin1-2/+2
2013-02-22new helper: file_inode(file)Al Viro1-14/+14
2013-02-15SUNRPC: move cache_detail->cache_request callback call to cache_read()Stanislav Kinsbursky1-12/+20
2013-02-15SUNRPC: remove "cache_request" argument in sunrpc_cache_pipe_upcall() functionStanislav Kinsbursky1-7/+3
2013-02-15SUNRPC: rework cache upcall logicStanislav Kinsbursky1-4/+7
2013-01-23nfsd: Remove write permission from file contentYanchuan Nian1-1/+1
2012-11-04SUNRPC: remove BUG_ON calls from cache_readWeston Andros Adamson1-2/+2
2012-10-17SUNRPC: Prevent kernel stack corruption on long values of flushSasha Levin1-2/+2
2012-08-21workqueue: make deferrable delayed_work initializer names consistentTejun Heo1-1/+1
2012-07-12SUNRPC/cache: fix reporting of expired cache entries in 'content' file.NeilBrown1-1/+4
2012-04-15net: cleanup unsigned to unsigned intEric Dumazet1-1/+1
2012-03-26Merge nfs containerization work from Trond's treeJ. Bruce Fields1-16/+28
2012-02-03nfsd: don't allow zero length strings in cache_parse()Dan Carpenter1-0/+2
2012-01-31SUNRPC: generic cache register routines removedStanislav Kinsbursky1-12/+0
2012-01-31SUNRPC: cache creation and destruction routines introducedStanislav Kinsbursky1-0/+26
2012-01-31SUNRPC: split cache creation and PipeFS registrationStanislav Kinsbursky1-7/+5
2012-01-14Merge branch 'for-3.3' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-0/+2
2012-01-03sunrpc: propagate umode_tAl Viro1-1/+1
2011-12-07NFSd: use network-namespace-aware cache registering routinesStanislav Kinsbursky1-0/+2
2011-01-04svcrpc: ensure cache_check caller sees updated entryJ. Bruce Fields1-1/+10
2011-01-04svcrpc: take lock on turning entry NEGATIVE in cache_checkJ. Bruce Fields1-7/+18
2011-01-04svcrpc: avoid double reply caused by deferral raceJ. Bruce Fields1-7/+11
2010-10-26Merge branch 'for-2.6.37' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-87/+201
2010-10-22Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bklLinus Torvalds1-0/+2
2010-10-19sunrpc: remove the big kernel lockArnd Bergmann1-13/+2
2010-10-15llseek: automatically add .llseek fopArnd Bergmann1-0/+2
2010-10-11sunrpc/cache: centralise handling of size limit on deferred list.NeilBrown1-24/+43
2010-10-11sunrpc: Simplify cache_defer_req and related functions.NeilBrown1-36/+22
2010-10-01sunrpc: fix race in new cache_wait code.NeilBrown1-3/+2
2010-09-27sunrpc: Make the /proc/net/rpc appear in net namespacesPavel Emelyanov1-3/+8
2010-09-27sunrpc: Add routines that allow registering per-net cachesPavel Emelyanov1-8/+19
2010-09-22sunrpc/cache: fix recent breakage of cache_clean_deferredNeilBrown1-1/+3
2010-09-21sunrpc/cache: don't use custom hex_to_bin() converterAndy Shevchenko1-7/+13
2010-09-21sunrpc/cache: change deferred-request hash table to use hlist.NeilBrown1-18/+10
2010-09-19nfsd4: fix hang on fast-booting nfs serversJ. Bruce Fields1-4/+20
2010-09-07svcrpc: cache deferral cleanupJ. Bruce Fields1-64/+79
2010-09-07svcrpc: minor cache cleanupJ. Bruce Fields1-20/+24
2010-09-07sunrpc/cache: allow threads to block while waiting for cache update.NeilBrown1-1/+58
2010-09-07sunrpc: use seconds since boot in expiry cacheNeilBrown1-17/+19
2010-08-06net: sunrpc: removed duplicated #includeAndrea Gelmini1-1/+0
2010-07-06sunrpc: make the cache cleaner workqueue deferrableArtem Bityutskiy1-1/+6
2010-05-24Merge branch 'bkl/ioctl' of git://git.kernel.org/pub/scm/linux/kernel/git/fre...Linus Torvalds1-3/+10
2010-05-22sunrpc: Pushdown the bkl from sunrpc cache ioctlFrederic Weisbecker1-3/+10
2010-05-19Merge branch 'for-2.6.35' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-16/+29
2010-05-17sunrpc: Include missing smp_lock.hFrederic Weisbecker1-0/+1
2010-05-17procfs: Push down the bkl from ioctlFrederic Weisbecker1-4/+10
2010-03-24sunrpc/cache: fix module refcnt leak in a failure pathLi Zefan1-1/+3
2010-03-14sunrpc: never return expired entries in sunrpc_cache_lookupNeilBrown1-3/+14
2010-03-14sunrpc/cache: factor out cache_is_expiredNeilBrown1-5/+8
2010-03-14sunrpc: don't keep expired entries in the auth caches.NeilBrown1-8/+5
2009-11-29net: Move && and || to end of previous lineJoe Perches1-3/+2
2009-09-18sunrpc/cache: avoid variable over-loading in cache_defer_reqNeilBrown1-9/+9
2009-09-18sunrpc/cache: use list_del_init for the list_head entries in cache_deferred_reqNeilBrown1-4/+4
2009-09-11sunrpc/cache: simplify cache_fresh_locked and cache_fresh_unlocked.NeilBrown1-13/+10
2009-09-11sunrpc/cache: change cache_defer_req to return -ve error, not boolean.NeilBrown1-5/+5
2009-08-21Merge branch 'nfs-for-2.6.32' of git://git.linux-nfs.org/projects/trondmy/nfs...J. Bruce Fields1-149/+473
2009-08-19SUNRPC: cache must take a reference to the cache detail's module on open()Trond Myklebust1-4/+76
2009-08-09SUNRPC: Add an rpc_pipefs front end for the sunrpc cache codeTrond Myklebust1-0/+126
2009-08-09SUNRPC: Move procfs-specific stuff out of the generic sunrpc cache codeTrond Myklebust1-129/+190
2009-08-09SUNRPC: Allow the cache_detail to specify alternative upcall mechanismsTrond Myklebust1-8/+18
2009-08-09SUNRPC: Remove the global temporary write buffer in net/sunrpc/cache.cTrond Myklebust1-25/+70
2009-08-09SUNRPC: Ensure we initialise the cache_detail before creating procfs filesTrond Myklebust1-10/+20
2009-08-09NFSD: Clean up the idmapper warning...Trond Myklebust1-1/+1
2009-08-04sunrpc/cache: recheck cache validity after cache_defer_reqNeilBrown1-20/+33
2009-08-04sunrpc/cache: make sure deferred requests eventually get revisited.NeilBrown1-1/+4
2009-08-04sunrpc/cache: rename queue_loose to cache_dequeueNeilBrown1-4/+4
2009-06-15sunrpc: align cache_clean work's timerAnton Blanchard1-1/+1
2009-03-31proc 2/2: remove struct proc_dir_entry::ownerAlexey Dobriyan1-4/+0
2009-01-07SUNRPC: The sunrpc server code should not be used by out-of-tree modulesTrond Myklebust1-10/+10
2008-05-02sunrpc: assign PDE->data before gluing PDE into /proc treeDenis V. Lunev1-9/+6
2008-04-23svcrpc: move unused field from cache_deferred_reqJ. Bruce Fields1-1/+0
2008-02-28[SUNRPC]: Use proc_create() to setup ->proc_fops firstWang Chen1-8/+6
2008-02-01SUNRPC: Move exported symbol definitions after function declaration part 2Trond Myklebust1-1/+8
2008-02-01knfsd: allow cache_register to return error on failureJ. Bruce Fields1-7/+23
2008-02-01nfsd: move cache proc (un)registration to separate functionJ. Bruce Fields1-45/+54
2008-02-01knfsd: cache unregistration needn't return errorJ. Bruce Fields1-3/+5
2008-02-01knfsd: fix cache.c commentJ. Bruce Fields1-5/+5
2008-02-01SUNRPC: Prevent length underflow in read_flush()Chuck Lever1-5/+5
2008-01-28[NET]: Add some acquires/releases sparse annotations.Eric Dumazet1-0/+2
2007-10-10[SUNRPC]: Make the sunrpc use the seq_open_private()Pavel Emelyanov1-10/+2
2007-08-07SUNRPC: Replace flush_workqueue() with cancel_work_sync() and friendsTrond Myklebust1-2/+1
2007-07-10[NET]: Make all initialized struct seq_operations const.Philippe De Muyter1-1/+1
2007-04-26[SUNRPC]: cleanup: use seq_release_private() where appropriateMartin Peschke1-9/+1
2007-02-12Merge branch 'master' of /home/trondmy/kernel/linux-2.6/Trond Myklebust1-38/+38
2007-02-12[PATCH] mark struct file_operations const 8Arjan van de Ven1-6/+6
2007-02-10[NET] SUNRPC: Fix whitespace errors.YOSHIFUJI Hideaki1-32/+32
2007-02-03SUNRPC: fix print format for tk_pidChuck Lever1-1/+2
2006-12-13[PATCH] knfsd: svcrpc: remove another silent drop from deferral codeJ.Bruce Fields1-11/+9
2006-12-13[PATCH] knfsd: nfsd: don't drop silently on upcall deferralJ.Bruce Fields1-4/+7
2006-12-08[PATCH] struct path: convert sunrpcJosef Sipek1-5/+5
2006-11-22WorkStruct: Pass the work_struct pointer instead of context dataDavid Howells1-3/+3
2006-11-22WorkStruct: Separate delayable and non-delayable events.David Howells1-2/+2
2006-08-06[PATCH] knfsd: fix race related problem when adding items to and svcrpc auth ...Neil Brown1-1/+5
2006-05-23[PATCH] knfsd: Fix two problems that can cause rmmod nfsd to dieNeilBrown1-0/+1
2006-03-27[PATCH] fs/nfsd/export.c,net/sunrpc/cache.c: make needlessly global code staticAdrian Bunk1-1/+1
2006-03-27[PATCH] knfsd: Convert sunrpc_cache to use krefsNeilBrown1-10/+10
2006-03-27[PATCH] knfsd: Unexport cache_fresh and fix a small raceNeilBrown1-21/+30
2006-03-27[PATCH] knfsd: An assortment of little fixes to the sunrpc cache codeNeilBrown1-6/+8
2006-03-27[PATCH] knfsd: Create cache_lookup function instead of using a macro to decla...NeilBrown1-0/+98
2006-03-20[NET] sem2mutex: net/Arjan van de Ven1-8/+9
2006-01-09[NET]: Change some "if (x) BUG();" to "BUG_ON(x);"Kris Katterjohn1-3/+2
2005-09-07[PATCH] sunrpc: cache_register can use wrong module referenceBruce Allan1-4/+4
2005-04-16Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds1-0/+1189