Files
linux/drivers
Hannes Reinecke 565ff95cdc dm mpath: fix ioctl deadlock when no paths
commit 6c182cd88d upstream.

When multipath needs to retry an ioctl the reference to the
current live table needs to be dropped. Otherwise a deadlock
occurs when all paths are down:
- dm_blk_ioctl takes a reference to the current table
  and spins in multipath_ioctl().
- A new table is being loaded, but upon resume the process
  hangs in dm_table_destroy() waiting for references to
  drop to zero.

With this patch the reference to the old table is dropped
prior to retry, thereby avoiding the deadlock.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Cc: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-08-04 16:51:02 +08:00
..
2013-07-28 16:30:11 -07:00
2013-07-25 14:07:28 -07:00
2013-05-20 13:38:14 -07:00
2013-07-21 18:21:30 -07:00
2013-06-05 08:54:16 -06:00