Skip to content

Fix assorted FS-Cache issues [ver #2]

David Howells linux-fsdevel linux-nfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8Add wait_on_atomic_t() and wake_up_atomic_t() [ver #2]include/linux/wait.h kernel/wait.c+109 -01 reply
2/8fs/fscache: remove spin_lock() from the condition in while() [ver #2]fs/fscache/page.c+10 -60 replies
3/8CacheFiles: name i_mutex lock class explicitly [ver #2]fs/cachefiles/namei.c+1 -10 replies
4/8FS-Cache: Don't sleep in page release if __GFP_FS is not set [ver #2]fs/fscache/page.c+1 -10 replies
5/8FS-Cache: Uninline fscache_object_init() [ver #2]fs/fscache/object.c include/linux/fscache-cache.h+40 -380 replies
6/8FS-Cache: Wrap checks on object state [ver #2]fs/cachefiles/namei.c fs/fscache/cache.c fs/fscache/cookie.c +3 more+40 -210 replies
7/8FS-Cache: Fix object state machine to have separate work and wait states [ver #2]fs/cachefiles/interface.c fs/cachefiles/namei.c fs/fscache/cache.c +7 more+605 -5770 replies
8/8FS-Cache: Simplify cookie retention for fscache_objects, fixing access problems [ver #2]fs/cachefiles/interface.c fs/cachefiles/xattr.c fs/fscache/cookie.c +9 more+232 -2570 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] Fix assorted FS-Cache issues [ver #2]

Following this mail is a series of patches to fix a number of FS-Cache issues, including a number of oopses. The patches can also be found at:

http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=fscache

on top of a patch from Tejun Heo to fix a problem in the workqueues. The patches are also tagged:

http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git tags/fscache-20130510

The patches are as follows:

(1) Provide a system wait_on_atomic_t() and wake_up_atomic_t() (enhancement).

(2) Don't put spin_lock() in a while-condition as spin_lock() may be wrapped

     with do {} while(0) (cleanup).

(3) Name i_mutex lock classes rather than using numbers in CacheFiles (cleanup).

(4) Don't sleep in page release if __GFP_FS is not set (deadlock vs ext4).

(5) Uninline fscache_object_init() (cleanup).

(6) Wrap checks on object state (cleanup).

(7) Simplify the object state machine (need #5 and #6).

(8) Simplify cookie retention by objects (oops fix, need #1 and #7).

David
---
David Howells (6):
Add wait_on_atomic_t() and wake_up_atomic_t()
FS-Cache: Don't sleep in page release if __GFP_FS is not set
FS-Cache: Uninline fscache_object_init()
FS-Cache: Wrap checks on object state
FS-Cache: Fix object state machine to have separate work and wait states
FS-Cache: Simplify cookie retention for fscache_objects, fixing access problems

J. Bruce Fields (1):
CacheFiles: name i_mutex lock class explicitly

Sebastian Andrzej Siewior (1):
fs/fscache: remove spin_lock() from the condition in while()

 fs/cachefiles/interface.c     |   11 
 fs/cachefiles/namei.c         |   10 
 fs/cachefiles/xattr.c         |    6 
 fs/fscache/cache.c            |   34 +
 fs/fscache/cookie.c           |   93 +--
 fs/fscache/fsdef.c            |    1 
 fs/fscache/internal.h         |   11 
 fs/fscache/main.c             |   11 
 fs/fscache/netfs.c            |    1 
 fs/fscache/object-list.c      |  103 ++--
 fs/fscache/object.c           | 1106 +++++++++++++++++++++--------------------
 fs/fscache/operation.c        |   36 +
 fs/fscache/page.c             |   55 +-
 include/linux/fscache-cache.h |  170 +++---
 include/linux/wait.h          |   24 +
 kernel/wait.c                 |   85 +++
 16 files changed, 947 insertions(+), 810 deletions(-)