* [Drbd-dev] Re: your mail
[not found] <DreamMail__200941_89074845882@smtp.163.com>
@ 2007-07-21 14:24 ` Lars Ellenberg
0 siblings, 0 replies; only message in thread
From: Lars Ellenberg @ 2007-07-21 14:24 UTC (permalink / raw)
To: lihua; +Cc: drbd-dev
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 :
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-21 14:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <DreamMail__200941_89074845882@smtp.163.com>
2007-07-21 14:24 ` [Drbd-dev] Re: your mail Lars Ellenberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox