]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commit
blktap: fix cleanup after unclean application exit #2
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 22 Apr 2010 08:35:46 +0000 (09:35 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 22 Apr 2010 08:35:46 +0000 (09:35 +0100)
commite94482c03bc2d755d3f4bbf9f4680e5f1ffbba95
tree0ad668664f020cf526317c1433c7e30902867fff
parenta032e3dfc7d0944464dc6f486871e6ba823e5a75
blktap: fix cleanup after unclean application exit #2

When an application using blktap devices doesn't close the mmap-s of
/dev/xen/blktapN and the frontend driver never connects, we cannot
defer the mmput() on the stored mm until blktap_release() or the exit
path of the worker thread, as the former will never be called without
the mm's reference count dropping to zero, and the worker thread
would never get started.

Also remove a left-over from c/s 1013.

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