]> 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)
commitc80eba1a50f623e47116f38f6f14dbb5c8a49754
tree098bb16500f88046493d2247359ca139b3f5611c
parent00b512f5f37995cfe4ffc73ab97c3206fd125f8a
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