From: Ming Lei <[email protected]>
To: Pavel Machek <[email protected]>
Cc: [email protected], [email protected],
[email protected], [email protected]
Subject: Re: ublk-nbd: ublk-nbd is avaialbe
Date: Thu, 2 Mar 2023 11:11:22 +0800 [thread overview]
Message-ID: <ZAAT2noc/LqrVDIK@T590> (raw)
In-Reply-To: <Y/3RuWZKaYrTj/[email protected]>
On Tue, Feb 28, 2023 at 11:04:41AM +0100, Pavel Machek wrote:
> Hi!
>
> > ublk-nbd[1] is available now.
> >
> > Basically it is one nbd client, but totally implemented in userspace,
> > and wrt. current nbd-client in [2], the transmission phase is done
> > by linux block nbd driver.
>
> There is reason nbd-client needs to be in kernel, and the reason is
> deadlocks during low memory situations.
Last time, the nbd memory deadlock is solved by the following approach
[1], which is used for ublk too.
Actually ublk can be thought as replacing nbd socket communication
with (much more lightweight & generic) uring_cmd, and move nbd socket
communication into userspace for ublk-nbd. Not see such way may cause
memory deadlock.
Also, ublk has built-in user recovery mechanism, killing deadlock user
daemon and recovering it can be the last straw, and the disk node won't
be gone away during the recovery.
So please provide some analysis or reproductions, otherwise I may have
to ignore your comments.
[1] https://lore.kernel.org/linux-fsdevel/[email protected]/
Thanks,
Ming
next prev parent reply other threads:[~2023-03-02 3:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-19 14:23 ublk-nbd: ublk-nbd is avaialbe Ming Lei
2023-01-19 18:49 ` Jens Axboe
2023-01-26 3:08 ` Ming Lei
2023-01-26 4:08 ` Willy Tarreau
2023-01-26 11:41 ` Ming Lei
2023-01-26 12:54 ` Willy Tarreau
2023-02-28 10:04 ` Pavel Machek
2023-03-02 3:11 ` Ming Lei [this message]
2023-03-11 13:21 ` Wouter Verhelst
2023-03-12 8:30 ` Ming Lei
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=ZAAT2noc/LqrVDIK@T590 \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/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