38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Benjamin Marzinski <bmarzins@redhat.com>
|
|
Date: Mon, 14 Jul 2025 20:14:06 -0400
|
|
Subject: [PATCH] limpathpersist: remove update_map_pr code for NULL pp
|
|
|
|
Since update_map_pr is always called with pp set now, remove the code
|
|
to handle being called with NULL pp.
|
|
|
|
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
---
|
|
libmpathpersist/mpath_persist.c | 12 +-----------
|
|
1 file changed, 1 insertion(+), 11 deletions(-)
|
|
|
|
diff --git a/libmpathpersist/mpath_persist.c b/libmpathpersist/mpath_persist.c
|
|
index e47e9190..fbf6161f 100644
|
|
--- a/libmpathpersist/mpath_persist.c
|
|
+++ b/libmpathpersist/mpath_persist.c
|
|
@@ -993,18 +993,8 @@ int update_map_pr(struct multipath *mpp, struct path *pp)
|
|
condlog(0,"%s : failed to alloc resp in update_map_pr", mpp->alias);
|
|
return MPATH_PR_OTHER;
|
|
}
|
|
- if (!pp && count_active_paths(mpp) == 0) {
|
|
- condlog(2, "%s: No available paths to check pr status",
|
|
- mpp->alias);
|
|
- goto out;
|
|
- }
|
|
- if (pp)
|
|
- ret = prin_do_scsi_ioctl(pp->dev, MPATH_PRIN_RKEY_SA, resp,
|
|
- noisy);
|
|
- else
|
|
- ret = mpath_prin_activepath(mpp, MPATH_PRIN_RKEY_SA, resp,
|
|
- noisy);
|
|
|
|
+ ret = prin_do_scsi_ioctl(pp->dev, MPATH_PRIN_RKEY_SA, resp, noisy);
|
|
if (ret != MPATH_PR_SUCCESS )
|
|
{
|
|
if (ret == MPATH_PR_ILLEGAL_REQ)
|