your mail
A message that is not in the archive (sent off-list or not yet received): [email protected]
Lars Ellenberg
maintainerQuoted 12 lines · lihua
drbd-dev,
I have a Qs in function ensure_mdev in drbd_nl.c minor_to_mdev ensure mdev exist. If it not exist ,we may create a device .Thus ,minor_table[nlp->drbd_minor] == NULL and mdev = NULL. So : if(mdev){ ...... } can't perform forever. Is my mean right? 2007-7月-日
the inner part is only to avoid a race condition in case two commands try to create the same device at the same time. it won't loop.
Signature · 3 lines
: Lars Ellenberg Tel +43-1-8178292-0 : : LINBIT Information Technologies GmbH Fax +43-1-8178292-82 : : Vivenotgasse 48, A-1120 Vienna/Europe http://www.linbit.com :