Skip to contentSkip to conversation

your mail

Drbd-dev Lars Ellenberg 1 participant 1 message Jul 21, 2007 1 message not in the archive DRBD driver

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Lars Ellenberg

author maintainer
#1 lore raw
Quoted 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 :