[stgt] [PATCH 1/2] add signalfd support

Florian Haas florian.haas at linbit.com
Wed Sep 9 13:30:44 CEST 2009


On 09/09/2009 01:29 PM, FUJITA Tomonori wrote:
> On Wed, 09 Sep 2009 13:17:10 +0200
> Florian Haas <florian.haas at linbit.com> wrote:
> 
>> On 09/09/2009 12:44 PM, FUJITA Tomonori wrote:
>>> We use threads and pipe for event notification (I/O completion); I/O
>>> threads signal the main thread when I/Os are complete. signalfd is
>>> faster than it (signalfd is supported as of 2.6.22).
>> Tomo-san,
>>
>> AFAICS signalfd has not been backported to Red Hat's RHEL 5 kernels. So
>> if I understand correctly, this patch would break building tgt on that
>> platform (and presumably others, like Debian etch and SLES 10). Would
>> you mind employing ifdefs so that when signalfd is not available on the
>> platform tgt is being built on, it reverts to the old behavior?
> 
> This patch works in the old way on a box where signalfd is not
> supported. I have not try this patch with systems that doesn't support
> signalfd. Can anyone test this patch on such system?

I can try and see if it builds. What would I need to look out for when I
actually use it?

Cheers,
Florian


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20090909/5fd0f3f4/attachment-0001.sig>


More information about the stgt mailing list