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 |
---|---|---|
Makefile | -rw-r--r-- | 1.2 KB |
lock_events.c | -rw-r--r-- | 4.3 KB |
lock_events.h | -rw-r--r-- | 1.7 KB |
lock_events_list.h | -rw-r--r-- | 3.1 KB |
lockdep.c | -rw-r--r-- | 159.9 KB |
lockdep_internals.h | -rw-r--r-- | 7.1 KB |
lockdep_proc.c | -rw-r--r-- | 17.8 KB |
lockdep_states.h | -rw-r--r-- | 207 bytes |
locktorture.c | -rw-r--r-- | 28.2 KB |
mcs_spinlock.h | -rw-r--r-- | 3.7 KB |
mutex-debug.c | -rw-r--r-- | 2.8 KB |
mutex-debug.h | -rw-r--r-- | 1.1 KB |
mutex.c | -rw-r--r-- | 37.5 KB |
mutex.h | -rw-r--r-- | 841 bytes |
osq_lock.c | -rw-r--r-- | 5.8 KB |
percpu-rwsem.c | -rw-r--r-- | 7.1 KB |
qrwlock.c | -rw-r--r-- | 2.3 KB |
qspinlock.c | -rw-r--r-- | 16.6 KB |
qspinlock_paravirt.h | -rw-r--r-- | 16.0 KB |
qspinlock_stat.h | -rw-r--r-- | 3.0 KB |
rtmutex-debug.c | -rw-r--r-- | 4.6 KB |
rtmutex-debug.h | -rw-r--r-- | 1.4 KB |
rtmutex.c | -rw-r--r-- | 50.9 KB |
rtmutex.h | -rw-r--r-- | 1.2 KB |
rtmutex_common.h | -rw-r--r-- | 4.2 KB |
rwsem.c | -rw-r--r-- | 41.6 KB |
rwsem.h | -rw-r--r-- | 0 bytes |
semaphore.c | -rw-r--r-- | 7.2 KB |
spinlock.c | -rw-r--r-- | 9.6 KB |
spinlock_debug.c | -rw-r--r-- | 5.7 KB |
test-ww_mutex.c | -rw-r--r-- | 12.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...