All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josef Bacik <josef@toxicpanda.com>
To: kvigor@gmail.com
Cc: linux-block@vger.kernel.org, josef@toxicpanda.com,
	axboe@kernel.dk, Kevin Vigor <kvigor@fb.com>
Subject: Re: [PATCH] nbd: clear DISCONNECT_REQUESTED flag once disconnection occurs.
Date: Wed, 30 May 2018 13:28:51 -0400	[thread overview]
Message-ID: <20180530172850.a2cqzrl6rltlxmni@destiny> (raw)
In-Reply-To: <1527698711-14919-1-git-send-email-kvigor@gmail.com>

On Wed, May 30, 2018 at 10:45:11AM -0600, kvigor@gmail.com wrote:
> From: Kevin Vigor <kvigor@fb.com>
> 
> When a userspace client requests a NBD device be disconnected, the
> DISCONNECT_REQUESTED flag is set. While this flag is set, the driver
> will not inform userspace when a connection is closed.
> 
> Unfortunately the flag was never cleared, so once a disconnect was
> requested the driver would thereafter never tell userspace about a
> closed connection. Thus when connections failed due to timeout, no
> attempt to reconnect was made and eventually the device would fail.
> 
> Fix by clearing the DISCONNECT_REQUESTED flag (and setting the
> DISCONNECTED flag) once all connections are closed.
> 
> Changes relative to v1 (https://marc.info/?l=linux-block&m=152763540418902):
> 
> * remove pointless wake_up() -> wake_up_all() change.
> 

Usually you want to put the changelog after the --- bit below so we can all see
it but it doesn't end up in the git changelog.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>

Thanks,

Josef

  reply	other threads:[~2018-05-30 17:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-30 16:45 [PATCH] nbd: clear DISCONNECT_REQUESTED flag once disconnection occurs kvigor
2018-05-30 17:28 ` Josef Bacik [this message]
2018-05-30 17:31 ` Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2018-05-29 23:09 kvigor
2018-05-30 15:41 ` Jens Axboe

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=20180530172850.a2cqzrl6rltlxmni@destiny \
    --to=josef@toxicpanda.com \
    --cc=axboe@kernel.dk \
    --cc=kvigor@fb.com \
    --cc=kvigor@gmail.com \
    --cc=linux-block@vger.kernel.org \
    /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.