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)
commit4035c2487f179327fae87af3477659402b797584
tree098bb16500f88046493d2247359ca139b3f5611c
parent6b16351acbd415e66ba16bf7d473ece1574cf0bc
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