diff options
author | Sachin Prabhu <sprabhu@redhat.com> | 2013-09-13 14:11:57 +0100 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-09-13 16:24:49 -0500 |
commit | 466bd31bbda9e1dd2ace1d72c8de5045bf6f3bf6 (patch) | |
tree | a9f0d34082a17ed39a237dfb843441766c550a08 /drivers/clocksource/arm_arch_timer.c | |
parent | a9e9b7bc15a32ec5b0679704e70f3ffeecfaadd8 (diff) | |
download | kernel_goldelico_gta04-466bd31bbda9e1dd2ace1d72c8de5045bf6f3bf6.zip kernel_goldelico_gta04-466bd31bbda9e1dd2ace1d72c8de5045bf6f3bf6.tar.gz kernel_goldelico_gta04-466bd31bbda9e1dd2ace1d72c8de5045bf6f3bf6.tar.bz2 |
cifs: Avoid calling unlock_page() twice in cifs_readpage() when using fscache
When reading a single page with cifs_readpage(), we make a call to
fscache_read_or_alloc_page() which once done, asynchronously calls
the completion function cifs_readpage_from_fscache_complete(). This
completion function unlocks the page once it has been populated from
cache. The module then attempts to unlock the page a second time in
cifs_readpage() which leads to warning messages.
In case of a successful call to fscache_read_or_alloc_page() we should skip
the second unlock_page() since this will be called by the
cifs_readpage_from_fscache_complete() once the page has been populated by
fscache.
With the modifications to cifs_readpage_worker(), we will need to re-grab the
page lock in cifs_write_begin().
The problem was first noticed when testing new fscache patches for cifs.
https://bugzilla.redhat.com/show_bug.cgi?id=1005737
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'drivers/clocksource/arm_arch_timer.c')
0 files changed, 0 insertions, 0 deletions