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-- | 4.8 KB |
Makefile | -rw-r--r-- | 874 bytes |
alarmtimer.c | -rw-r--r-- | 23.5 KB |
clockevents.c | -rw-r--r-- | 19.6 KB |
clocksource.c | -rw-r--r-- | 33.3 KB |
hrtimer.c | -rw-r--r-- | 60.8 KB |
itimer.c | -rw-r--r-- | 10.2 KB |
jiffies.c | -rw-r--r-- | 3.1 KB |
namespace.c | -rw-r--r-- | 10.5 KB |
ntp.c | -rw-r--r-- | 28.2 KB |
ntp_internal.h | -rw-r--r-- | 783 bytes |
posix-clock.c | -rw-r--r-- | 5.6 KB |
posix-cpu-timers.c | -rw-r--r-- | 42.4 KB |
posix-stubs.c | -rw-r--r-- | 5.5 KB |
posix-timers.c | -rw-r--r-- | 37.1 KB |
posix-timers.h | -rw-r--r-- | 1.9 KB |
sched_clock.c | -rw-r--r-- | 7.7 KB |
test_udelay.c | -rw-r--r-- | 3.7 KB |
tick-broadcast-hrtimer.c | -rw-r--r-- | 3.2 KB |
tick-broadcast.c | -rw-r--r-- | 27.3 KB |
tick-common.c | -rw-r--r-- | 14.7 KB |
tick-internal.h | -rw-r--r-- | 6.8 KB |
tick-legacy.c | -rw-r--r-- | 999 bytes |
tick-oneshot.c | -rw-r--r-- | 3.2 KB |
tick-sched.c | -rw-r--r-- | 36.6 KB |
tick-sched.h | -rw-r--r-- | 3.3 KB |
time.c | -rw-r--r-- | 22.9 KB |
timeconst.bc | -rw-r--r-- | 3.0 KB |
timeconv.c | -rw-r--r-- | 3.6 KB |
timecounter.c | -rw-r--r-- | 2.5 KB |
timekeeping.c | -rw-r--r-- | 69.6 KB |
timekeeping.h | -rw-r--r-- | 983 bytes |
timekeeping_debug.c | -rw-r--r-- | 1.3 KB |
timekeeping_internal.h | -rw-r--r-- | 921 bytes |
timer.c | -rw-r--r-- | 60.0 KB |
timer_list.c | -rw-r--r-- | 8.4 KB |
vsyscall.c | -rw-r--r-- | 4.9 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...