]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix list manipulation snafus in fs/nfs/direct.c
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 8 Jul 2012 14:24:10 +0000 (10:24 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 8 Jul 2012 14:32:08 +0000 (10:32 -0400)
commitd4831321d3e8374b81d344014f2f052da6b504c6
tree098bb16500f88046493d2247359ca139b3f5611c
parenta573b18ab0f77eec7e891a801d0976db71b60d63
NFS: Fix list manipulation snafus in fs/nfs/direct.c

Fix 2 bugs in nfs_direct_write_reschedule:

 - The request needs to be removed from the 'reqs' list before it can
   be added to 'failed'.
 - Fix an infinite loop if the 'failed' list is non-empty.

Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/direct.c