Mike Snitzer 1f3db25d8b dm thin metadata: remove incorrect close_device on creation error paths
The __open_device() error paths in __create_thin() and __create_snap()
incorrectly call __close_device() even if td was not initialized by
__open_device().  Remove this.

Also document __open_device() return values, remove a redundant
td->changed = 1 in __create_thin(), and insert an additional
safeguard against creating an already-existing device.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
2012-03-07 19:09:41 +00:00
..
2011-10-31 20:19:09 +00:00
2012-03-07 19:09:37 +00:00
2011-08-02 12:32:02 +01:00
2011-07-26 16:49:47 -07:00
2011-03-31 11:26:23 -03:00
2011-03-24 13:54:35 +00:00
2011-10-31 20:21:18 +00:00
2007-10-20 02:01:26 +01:00
2010-08-12 04:14:12 +01:00
2012-01-03 22:54:07 -05:00
2011-10-31 20:19:04 +00:00
2011-10-31 20:21:18 +00:00
2011-10-31 20:21:18 +00:00
2012-02-08 19:06:30 -08:00