fix unmatched params when mpath prout rollback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mpath prout register may rollback, but the params are not matched in

creating thread for each path.

 

---

libmpathpersist/mpath_persist.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

 

diff --git a/libmpathpersist/mpath_persist.c b/libmpathpersist/mpath_persist.c

index 113cf7f..ac02494 100644

--- a/libmpathpersist/mpath_persist.c

+++ b/libmpathpersist/mpath_persist.c

@@ -519,7 +519,7 @@ int mpath_prout_reg(struct multipath *mpp,int rq_servact, int rq_scope,

                                memset(&thread[i].param.paramp->sa_key, 0, 8);

                                thread[i].param.status = MPATH_PR_SUCCESS;

                                rc = pthread_create(&thread[i].id, &attr, mpath_prout_pthread_fn,

-                                               (void *)(&thread[count].param));

+                                               (void *)(&thread[i].param));

                                if (rc){

                                        condlog (0, "%s: failed to create thread for rollback. %d",  mpp->wwid, rc);

                                }

--

dm-devel mailing list

dm-devel@xxxxxxxxxx

https://www.redhat.com/mailman/listinfo/dm-devel

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux