]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commit
xen/blktap: fix cleanup after unclean application exit
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 19 Apr 2010 16:19:23 +0000 (17:19 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 19 Apr 2010 16:19:23 +0000 (17:19 +0100)
commit4ee3e25985bf61cd3a351b32d19d8475e2254e85
tree0bc7e80f100272f4df255f66418628992520f4a6
parent04aeee4b50f484ae9de5d204a4ab7d5b881df94d
xen/blktap: fix cleanup after unclean application exit

When an application using blktap devices doesn't close the file handle
(or mmap-s) of /dev/xen/blktapN, we cannot defer the mmput() on the
stored mm until blktap_release(), as that will never be called without
the mm's reference count dropping to zero.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
drivers/xen/blktap/blktap.c