All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] poll()able DM events
@ 2017-05-09 19:10 Andy Grover
  2017-05-09 19:10 ` [PATCH 1/3] dm: a basic support for using the select or poll function Andy Grover
                   ` (4 more replies)
  0 siblings, 5 replies; 21+ messages in thread
From: Andy Grover @ 2017-05-09 19:10 UTC (permalink / raw)
  To: dm-devel, snitzer; +Cc: mpatocka

Hi Mike,

We've been working off-list to develop a method of getting DM events
that is reliable, and also can monitor events from multiple DM devices
from a single thread.

In short, these enable an open file descriptor to /dev/mapper/control
to be polled. If the fd indicates POLLIN, some DM device has
experienced an event. Figuring out which is made easier by adding
event_nr in a backwards-compatible way to DM_LIST_DEVICES, so
userspace can compare against previously seen per-device
event_nrs. A new ioctl is also added, to rearm the fd so it may be
re-poll()ed. See individual patch commitlogs for more details.

Thanks to Mikulas for redeveloping earlier versions into this patchset,
as well as the other RH LVM devs who provided early internal feedback!

Regards -- Andy

Mikulas Patocka (3):
  dm: a basic support for using the select or poll function
  dm-ioctl: add a new DM_DEV_ARM_POLL ioctl
  dm-ioctl: report event number in DM_LIST_DEVICES

 drivers/md/dm-core.h          |   3 ++
 drivers/md/dm-ioctl.c         | 109 +++++++++++++++++++++++++++++++++---------
 drivers/md/dm.c               |   5 ++
 include/uapi/linux/dm-ioctl.h |   6 ++-
 4 files changed, 99 insertions(+), 24 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2017-09-20 11:29 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-09 19:10 [PATCH 0/3] poll()able DM events Andy Grover
2017-05-09 19:10 ` [PATCH 1/3] dm: a basic support for using the select or poll function Andy Grover
2017-05-11  9:39   ` Martin Wilck
2017-05-11  9:43     ` Martin Wilck
2017-05-11 13:21       ` Mike Snitzer
2017-05-11 18:10         ` Andy Grover
2017-05-11 19:49           ` Martin Wilck
2017-05-11 20:21             ` Alasdair G Kergon
2017-05-11 20:45               ` Martin Wilck
2017-05-11 21:38                 ` Alasdair G Kergon
2017-05-11 19:30         ` Martin Wilck
2017-05-11 21:46           ` Andy Grover
2017-05-12  6:48             ` Martin Wilck
2017-05-11 21:50           ` Alasdair G Kergon
2017-05-12 15:52           ` Mikulas Patocka
2017-05-09 19:10 ` [PATCH 2/3] dm-ioctl: add a new DM_DEV_ARM_POLL ioctl Andy Grover
2017-05-09 19:10 ` [PATCH 3/3] dm-ioctl: report event number in DM_LIST_DEVICES Andy Grover
2017-05-09 21:14 ` [PATCH 0/3] poll()able DM events Mike Snitzer
2017-09-17  2:41 ` [PATCH 3/3] dm-ioctl: report event number in DM_LIST_DEVICES Eugene Syromiatnikov
2017-09-19 16:47   ` Andy Grover
2017-09-20 11:29   ` [PATCH] dm-ioctl: fix alignment of event number in the device list Mikulas Patocka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.