On 2021/9/14 0:32, Martin Wilck wrote: > On Mon, 2021-09-13 at 10:32 -0500, Benjamin Marzinski wrote: >> On Mon, Sep 13, 2021 at 09:01:11AM +0200, Martin Wilck wrote: >>> Hello lixiaokeng, >>> >>> On Mon, 2021-09-13 at 10:43 +0800, lixiaokeng wrote: >>>> There are two paths(sucu as sda and adb) for one LUN. The two >>>> paths log in, but before the two uevents have been processed >>>> (for example there are many uevent), users use multipathd add >>>> path /dev/sda to cause mpatha and use mpathpersist -o -I to >>>> register prkey for mpatha. The add map uevent is after add path >>>> uevent, the the uevent(add sdb) will delay and missing persistent >>>> reseravtion check. >>>> >>>> Here, we add persistent reseravtion check in update_map() which >>>> is called ev_add_map(). >>>> >>>> Signed-off-by: Lixiaokeng <lixiaokeng@xxxxxxxxxx> >>> >>> Thank you, this looks ok to me. Have you tested it? >>> >>> I'll wait for Ben's opinion nonetheless, because he's more >>> exprerienced >>> with this part of the code than myself. >>> >>> This said, I would like to have multipathd record which paths have >>> already registered the key, to avoid doing that repeatedly. >>> >> Other than adding this, the patch looks fine. > > I would say we can take the patch, then. We can add the record-keeping > later, I suppose it needs some deeper considerations. I wouldn't be > against lixiaokeng giving it a shot ;-) > Hello Martin, Thanks for your trust. I will try to do it. But as you said, it needs some deeper considerations and may take some time. If you have good solution for it firstly, please fix it. Regards Lixiaokeng -- dm-devel mailing list dm-devel@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/dm-devel