Fixes deadlock on growing the FD set
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 7 Oct 2014 02:01:27 +0000 (19:01 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 7 Oct 2014 02:01:27 +0000 (19:01 -0700)
commit83a05eb3c1ac74540e39c4edda9c1b0ea65be0cd
tree31ffebf1fa2cadd04fdc4c2286830e47770fea9f
parente1a10ea5c96c5f271e6995ad2216308d553a78e7
Fixes deadlock on growing the FD set

If we tried to grow beyond the max number of FDs, we'd set n == max and
kmalloc, memset, and memmove without making progress.  The loops would retry.
kern/src/vfs.c