Hi Vegard. On Sun, Jun 15, 2008 at 09:47:03AM +0200, Vegard Nossum (vegard.nossum@gmail.com) wrote:Task of this function is to copy as much new configs added by user (or by remote server) as we can. If config already exists (was copied in previous iterations) we skip it. If it does not, we allocate new structure and initialize it. If allocation fails, it is a serious error and unlikely we want to proceed, so we jump out of the loop and drop all states and return error. If we just failed to initialie new state (like connection was refused by remote server), we simply drop that failed case and proceed further. In theory we still can leave that half-initialized states in the list, and any attempt to send request via them will try to initialize its network part, but thread creation and allocation itself will be tried to recover, so I just drop such state here. I think initialization function should not return error if it failed to connect or create a socket, since it can/will be recovered later if needed. We should not return eexist, from non-error label, but at the only place, where this return value is checked (mount time initialization), superblock list is empty and thus this error can not happen. -- Evgeniy Polyakov --
| Stephane Jourdois | Re: 2.6.21-rc4-mm1 [PATCH] init/missing_syscalls.h fix |
| David Brown | Re: Linux 2.6.21-rc2 |
| Andi Kleen | [PATCH] [1/12] x86: Work around mmio config space quirk on AMD Fam10h |
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| David Miller | Re: [GIT]: Networking |
| David Woodhouse | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
git: | |
