Revision 809b1e4945774c9ec5619a8f4e2189b7b3833c0c authored by Hannes Reinecke on 21 January 2021, 17:50:56 UTC, committed by Mike Snitzer on 21 January 2021, 20:06:45 UTC
This reverts commit 644bda6f3460 ("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: 644bda6f3460 ("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>
1 parent 004b8ae
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 11.2 KB |
Makefile | -rw-r--r-- | 595 bytes |
autosleep.c | -rw-r--r-- | 2.6 KB |
console.c | -rw-r--r-- | 3.5 KB |
energy_model.c | -rw-r--r-- | 9.1 KB |
hibernate.c | -rw-r--r-- | 30.1 KB |
main.c | -rw-r--r-- | 22.5 KB |
power.h | -rw-r--r-- | 8.6 KB |
poweroff.c | -rw-r--r-- | 992 bytes |
process.c | -rw-r--r-- | 5.6 KB |
qos.c | -rw-r--r-- | 17.2 KB |
snapshot.c | -rw-r--r-- | 72.6 KB |
suspend.c | -rw-r--r-- | 15.3 KB |
suspend_test.c | -rw-r--r-- | 5.7 KB |
swap.c | -rw-r--r-- | 37.8 KB |
user.c | -rw-r--r-- | 9.4 KB |
wakelock.c | -rw-r--r-- | 5.9 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...