37dccf5dea
Add 0038-RHBZ-799860-netapp-config.patch Add 0039-RH-detect-prio-fix.patch * Don't autodetect ALUA prioritizer unless it actually can get a priority Add 0040-RH-bindings-fix.patch * Do a better job of trying to get the first free user_friendly_name Add 0041-RH-check-for-erofs.patch * Don't create/reload a device read-only unless doing it read/write fails with EROFS Remove 0017-RH-fix-sigusr1.patch * fix signal handling upstream way instead Add 0042-UP-fix-signal-handling.patch * uxlsnr now handles all the signals sent to multipathd. This makes its signal handling posix compliant, and harder to mess up. Add 0043-RH-signal-waiter.patch * ioctl isn't a pthread cancellation point. Send a signal to the waiter thread to break out of waiting in ioctl for a dm event.
29 lines
807 B
Diff
29 lines
807 B
Diff
---
|
|
libmultipath/propsel.c | 11 +++++++++--
|
|
1 file changed, 9 insertions(+), 2 deletions(-)
|
|
|
|
Index: multipath-tools-130222/libmultipath/propsel.c
|
|
===================================================================
|
|
--- multipath-tools-130222.orig/libmultipath/propsel.c
|
|
+++ multipath-tools-130222/libmultipath/propsel.c
|
|
@@ -384,10 +384,17 @@ select_getuid (struct path * pp)
|
|
void
|
|
detect_prio(struct path * pp)
|
|
{
|
|
+ int ret;
|
|
struct prio *p = &pp->prio;
|
|
|
|
- if (get_target_port_group_support(pp->fd) > 0)
|
|
- prio_get(p, PRIO_ALUA, DEFAULT_PRIO_ARGS);
|
|
+ if (get_target_port_group_support(pp->fd) <= 0)
|
|
+ return;
|
|
+ ret = get_target_port_group(pp->fd);
|
|
+ if (ret < 0)
|
|
+ return;
|
|
+ if (get_asymmetric_access_state(pp->fd, ret) < 0)
|
|
+ return;
|
|
+ prio_get(p, PRIO_ALUA, DEFAULT_PRIO_ARGS);
|
|
}
|
|
|
|
extern int
|