From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4BCB3EE7.8040801@domain.hid> Date: Sun, 18 Apr 2010 19:18:31 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] [PATCH v3 23/24] RTDM: Early fd release with poll-free context reference tracking List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka <"Jan Kiszka jan.kiszka"@web.de> Cc: Jan Kiszka , xenomai-core Jan Kiszka wrote: > From: Jan Kiszka > > Two changes in one as they are tightly related: Once close is called, > remove the file descriptor from open table, allowing its reuse while > close for the previous user proceeds. > > The second and major part of the patch avoids time-based polling while > waiting for context references to be dropped. This specifically helps in > scenarios where references can be held for a longer time beyond the > first close. A few set_bit and clear_bit with an xnlock locked. Could not these been replaced with __set_bit/__clear_bit in UP? -- Gilles.