Hannes Reinecke
809b1e4945
dm: avoid filesystem lookup in dm_get_dev_t()
...
This reverts commit
644bda6f34 ("dm table: fall back to getting device using name_to_dev_t()")
dm_get_dev_t() is just used to convert an arbitrary 'path' string
into a dev_t. It doesn't presume that the device is present; that
check will be done later, as the only caller is dm_get_device(),
which does a dm_get_table_device() later on, which will properly
open the device.
So if the path string already _is_ in major:minor representation
we can convert it directly, avoiding a recursion into the filesystem
to lookup the block device.
This avoids a hang in multipath_message() when the filesystem is
inaccessible.
Fixes: 644bda6f34 ("dm table: fall back to getting device using name_to_dev_t()")
Cc: stable@vger.kernel.org
Signed-off-by: Hannes Reinecke <hare@suse.de >
Signed-off-by: Martin Wilck <mwilck@suse.com >
Reviewed-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Mike Snitzer <snitzer@redhat.com >
2021-01-21 15:06:45 -05:00
..
2021-01-09 09:21:03 -07:00
2020-09-29 16:33:11 -04:00
2019-11-05 14:53:03 -05:00
2017-06-09 09:27:32 -06:00
2020-01-07 12:07:08 -05:00
2020-03-03 10:02:46 -05:00
2021-01-08 15:57:29 -05:00
2017-11-02 11:10:55 +01:00
2018-04-30 15:40:40 -04:00
2020-09-02 13:38:24 -04:00
2018-10-16 14:34:59 -04:00
2020-12-22 09:54:48 -05:00
2020-03-27 14:42:51 -04:00
2020-03-27 14:42:51 -04:00
2020-07-08 17:20:46 -06:00
2020-12-01 14:53:39 -07:00
2021-01-21 15:06:44 -05:00
2020-07-01 07:27:24 -06:00
2020-07-20 11:17:41 -04:00
2020-12-21 13:59:37 -05:00
2020-07-08 17:20:46 -06:00
2019-05-16 15:55:48 -07:00
2019-11-12 19:12:07 -07:00
2020-08-04 15:51:28 -04:00
2021-01-21 15:05:21 -05:00
2020-07-16 12:35:15 -07:00
2020-12-04 18:04:36 -05:00
2019-08-15 15:57:39 -04:00
2020-09-25 08:20:03 -06:00
2018-05-30 15:33:32 -06:00
2020-05-20 17:09:44 -04:00
2020-09-29 16:33:08 -04:00
2020-05-15 10:29:36 -04:00
2020-12-04 18:04:35 -05:00
2020-12-04 18:04:35 -05:00
2020-12-04 18:04:35 -05:00
2020-12-04 18:04:35 -05:00
2020-12-04 18:04:35 -05:00
2020-07-01 07:27:24 -06:00
2021-01-04 15:02:30 -05:00
2018-06-12 18:28:00 -07:00
2020-12-04 09:42:00 -07:00
2019-03-05 14:48:50 -05:00
2020-09-29 16:33:12 -04:00
2021-01-06 18:28:34 -05:00
2020-05-20 17:09:44 -04:00
2017-11-02 11:10:55 +01:00
2020-12-04 18:04:35 -05:00
2020-12-04 18:04:35 -05:00
2018-10-11 11:36:09 -04:00
2021-01-21 15:06:45 -05:00
2019-04-25 15:38:52 -04:00
2020-09-29 16:33:11 -04:00
2019-12-05 17:05:24 -05:00
2020-07-08 17:20:46 -06:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2020-12-04 18:04:35 -05:00
2020-04-16 16:16:38 -04:00
2019-05-30 11:26:32 -07:00
2020-12-21 13:57:25 -05:00
2020-12-04 18:04:35 -05:00
2020-08-04 15:48:13 -04:00
2020-07-13 11:47:33 -04:00
2020-12-01 15:43:39 -05:00
2020-12-04 18:04:35 -05:00
2020-07-08 12:21:53 -04:00
2020-07-08 12:21:53 -04:00
2020-08-03 11:57:03 -07:00
2020-06-05 14:59:53 -04:00
2021-01-08 15:56:35 -05:00
2020-09-29 16:33:07 -04:00
2021-01-04 15:02:32 -05:00
2020-12-04 18:04:35 -05:00
2020-08-23 17:36:59 -05:00
2020-10-08 22:37:39 -07:00
2018-08-01 15:49:39 -07:00
2020-12-16 13:09:32 -08:00
2018-10-18 09:36:35 -07:00
2020-07-01 07:27:24 -06:00
2020-12-04 09:42:00 -07:00
2020-05-13 12:02:23 -07:00
2020-07-08 17:20:46 -06:00
2018-05-30 15:33:32 -06:00
2020-12-16 13:09:32 -08:00
2020-12-16 13:09:32 -08:00
2020-12-16 12:57:51 -08:00
2019-09-13 13:10:05 -07:00
2019-06-15 01:37:35 -06:00
2020-12-04 09:42:00 -07:00
2020-05-13 12:02:23 -07:00
2020-08-02 23:03:52 -07:00
2019-03-12 10:15:18 -07:00
2020-07-21 17:18:12 -07:00
2020-12-04 09:42:00 -07:00
2020-09-24 16:44:44 -07:00
2020-12-16 13:09:32 -08:00
2020-12-09 20:46:00 -08:00