Re: [PATCH 1/3] dm: a basic support for using the select or poll function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2017-05-09 at 12:10 -0700, Andy Grover wrote:
> From: Mikulas Patocka <mpatocka@xxxxxxxxxx>
> 
> This is the very simple patch for polling on the /dev/mapper/control
> device. The select or poll function waits until any event happens on
> any
> dm device since opening the /dev/mapper/control device. When select
> or
> poll returns the device as readable, we must close and reopen the
> device
> to wait for new dm events.

Why have you done it that way? Couldn't you just save the
dm_global_event_nr at the time poll() is called?

Regards
Martin

-- 
Dr. Martin Wilck <mwilck@xxxxxxxx>, Tel. +49 (0)911 74053 2107SUSE
Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham NortonHRB
21284 (AG Nürnberg)

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux