[PATCH V2] discoveryd: Lock between forks

2015-08-23 Thread Roi Dayan
Since iscsi responses from the kernel are multicast we might get into a situation where multiple discoveryd handle the same response. With this commit we use a shared mutex to lock between the discoveryd forks so each fork will handle its intended portal. So we wait for login and stale logouts to

Re: [PATCH V2] discoveryd: Lock between forks

2015-08-23 Thread The Lee-Man
Just an update for the list: I have replied privately to Roi that I have some issue with this patch, but a bigger issue with fixing the discoveryd problem this way, i.e. single-threading it. If I can get a copy of the finer-grained locking code from him I will test it out. He says that it has