linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] uio hotplug support
@ 2015-01-16 18:49 Mandeep Sandhu
  2015-01-16 18:49 ` [PATCH 1/4] uio: Simplify the lifetime logic of struct uio_device Mandeep Sandhu
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Mandeep Sandhu @ 2015-01-16 18:49 UTC (permalink / raw)
  To: hjk, gregkh; +Cc: linux-kernel, viro, linux-fsdevel, Mandeep Sandhu

I'm re-submitting this patch originally authored by Eric W. Biederman.

See: https://lkml.org/lkml/2010/9/20/21

<original-summary>
Implement the ability to hot-unplug a uio device while file handles
are still open, without crashing.

The "locking" for hotunplug support is implemented in
a generic library, that should be reusable to make this
kind of support easier to add in other pieces of the kernel.
</original-summary>

I have made minor modifications for making it compile with the latest
kernel version (3.19.0-rc2).

I have tested this patch on Greg's char-misc tree with a fake
hotplug driver that I wrote. The code for the fake hotplug driver is
available here:
https://github.com/mandeepsandhu/uio-hotplug-test

I would like to attribute the patch to Eric, as he's the original
author (and can possibly be the maintainer for fs/libunload.c?). I
can put my name in "Tested-by" if people are satisified with the fake
hotplug driver I wrote.


Mandeep Sandhu (4):
  uio: Simplify the lifetime logic of struct uio_device.
  uio: Remove unused uio_info mmap method.
  libunload: A library to help remove open files
  uio: Implement hotunplug support, using libunload

 drivers/uio/uio.c          | 305 ++++++++++++++++++++++++++++++++-------------
 fs/Makefile                |   2 +-
 fs/libunload.c             | 169 +++++++++++++++++++++++++
 include/linux/uio_driver.h |  16 +--
 include/linux/unload.h     |  35 ++++++
 5 files changed, 427 insertions(+), 100 deletions(-)
 create mode 100644 fs/libunload.c
 create mode 100644 include/linux/unload.h

-- 
1.9.1


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

end of thread, other threads:[~2015-01-26 20:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-16 18:49 [PATCH 0/4] uio hotplug support Mandeep Sandhu
2015-01-16 18:49 ` [PATCH 1/4] uio: Simplify the lifetime logic of struct uio_device Mandeep Sandhu
2015-01-25 12:33   ` Greg KH
2015-01-26 19:57     ` Mandeep Sandhu
2015-01-26 20:04       ` Greg KH
2015-01-16 18:49 ` [PATCH 2/4] uio: Remove unused uio_info mmap method Mandeep Sandhu
2015-01-16 18:49 ` [PATCH 3/4] libunload: A library to help remove open files Mandeep Sandhu
2015-01-25 12:36   ` Greg KH
2015-01-16 18:49 ` [PATCH 4/4] uio: Implement hotunplug support, using libunload Mandeep Sandhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).