From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] lib/tst_device.c: Add exception handling of function tst_find_free_loopdev
Date: Wed, 10 Mar 2021 12:13:25 +0100 [thread overview]
Message-ID: <YEip1Ru2m6wH8tIo@pevik> (raw)
In-Reply-To: <20210310081048.27993-1-zhaogongyi@huawei.com>
Hi Gongyi,
> Because of race condition or abnormal env, set_dev_path may be
> return 1. And when set_dev_path return 1 in tst_find_free_loopdev,
You mean return 0, right?
> we should return Immediately.
Not really sure about this patch, mainly question for others.
Could you please more describe your problem?
Kind regards,
Petr
next prev parent reply other threads:[~2021-03-10 11:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-10 8:10 [LTP] [PATCH] lib/tst_device.c: Add exception handling of function tst_find_free_loopdev Zhao Gongyi
2021-03-10 11:13 ` Petr Vorel [this message]
2021-03-10 12:20 ` Li Wang
2021-03-10 14:03 ` Petr Vorel
-- strict thread matches above, loose matches on Subject: below --
2021-03-12 7:18 zhaogongyi
2021-03-12 9:54 zhaogongyi
2021-03-12 10:56 ` Cyril Hrubis
2021-03-15 12:06 zhaogongyi
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=YEip1Ru2m6wH8tIo@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox