All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars Ellenberg <lars.ellenberg@linbit.com>
To: lihua <lihuagzs@163.com>
Cc: drbd-dev <drbd-dev@lists.linbit.com>
Subject: [Drbd-dev] Re: your mail
Date: Sat, 21 Jul 2007 16:24:08 +0200	[thread overview]
Message-ID: <20070721142408.GB6130@mail.linbit.com> (raw)
In-Reply-To: <DreamMail__200941_89074845882@smtp.163.com>

On Thu, Jul 19, 2007 at 08:09:41PM +0800, lihua wrote:
> 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.


-- 
: 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 :

           reply	other threads:[~2007-07-21 14:24 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <DreamMail__200941_89074845882@smtp.163.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070721142408.GB6130@mail.linbit.com \
    --to=lars.ellenberg@linbit.com \
    --cc=drbd-dev@lists.linbit.com \
    --cc=lihuagzs@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.