[dm-devel] fix unmatched params when mpath prout rollback
Xieyingtai
xieyingtai at huawei.com
Thu Oct 15 11:40:50 UTC 2015
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 at redhat.com<mailto:dm-devel at redhat.com>
https://www.redhat.com/mailman/listinfo/dm-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20151015/4ee40b10/attachment.htm>
More information about the dm-devel
mailing list