Cache bypass: release and unlock pages when we get 0-length reply
authorMarc Dionne <marc.c.dionne@gmail.com>
Sun, 7 Nov 2010 20:06:16 +0000 (15:06 -0500)
committerDerrick Brashear <shadow@dementia.org>
Mon, 8 Nov 2010 01:21:00 +0000 (17:21 -0800)
commite4250dc64eb26b5da1480e9f5bd58d016f81847f
tree36dbe1142c654f809dd6f4969964d895d1ab7f97
parentf78b29b900028d67c51de7ae6c9e46b94602196c
Cache bypass: release and unlock pages when we get 0-length reply

In some cases, such as reading past the end of file as known to the
server, fetchdata will get a 0 length reply.  Deal gracefully by
unlocking and releasing any pages reserved by readpages.  Failure
to do so here leads to deadlocks later as we can exit with some pages
still locked.

Change-Id: Ic9e496c8c64d5e94f2cf9976d160ef5873f27249
Reviewed-on: http://gerrit.openafs.org/3283
Reviewed-by: Matt Benjamin <matt@linuxbox.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/afs_bypasscache.c