aboutsummaryrefslogtreecommitdiffstats
path: root/fs/mbcache.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2018-04-04 13:41:26 +0100
committerDavid Howells <dhowells@redhat.com>2018-04-04 13:41:26 +0100
commit2c98425720233ae3e135add0c7e869b32913502f (patch)
tree100789f2ccb035a3ec3bbfc76d6a63eaeedf18d8 /fs/mbcache.c
parentfscache: Detect multiple relinquishment of a cookie (diff)
downloadlinux-dev-2c98425720233ae3e135add0c7e869b32913502f.tar.xz
linux-dev-2c98425720233ae3e135add0c7e869b32913502f.zip
fscache: Fix hanging wait on page discarded by writeback
If the fscache asynchronous write operation elects to discard a page that's pending storage to the cache because the page would be over the store limit then it needs to wake the page as someone may be waiting on completion of the write. The problem is that the store limit may be updated by a different asynchronous operation - and so may miss the write - and that the store limit may not even get updated until later by the netfs. Fix the kernel hang by making fscache_write_op() mark as written any pages that are over the limit. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/mbcache.c')
0 files changed, 0 insertions, 0 deletions