From: David Disseldorp <ddiss@suse.de>
To: Douglas Fuller <dfuller@redhat.com>
Cc: ceph-devel@vger.kernel.org, Mike Christie <mchristi@redhat.com>
Subject: Re: [PATCHv2 4/6] osd_client, rbd: update event interface for watch/notify2
Date: Thu, 11 Feb 2016 18:51:27 +0100 [thread overview]
Message-ID: <20160211185127.753d724f@g21.suse.de> (raw)
In-Reply-To: <7fbb2dc2af702d07326369133839eab5e09054c3.1434550968.git.dfuller@redhat.com>
Hi Douglas,
Do you still plan on getting these changes upstream? I have one comment
on this patch:
On Wed, 17 Jun 2015 07:25:54 -0700, Douglas Fuller wrote:
> +static void rbd_watch_error_cb(void *arg, u64 cookie, int err)
> +{
> + struct rbd_device *rbd_dev = (struct rbd_device *)arg;
> + int ret;
> +
> + dout("%s: watch error %d on cookie %llu\n", rbd_dev->header_name,
> + err, cookie);
> + rbd_warn(rbd_dev, "%s: watch error %d on cookie %llu\n",
> + rbd_dev->header_name, err, cookie);
> +
> + /* reset watch */
> + rbd_dev_header_unwatch_sync(rbd_dev);
> + ret = rbd_dev_header_watch_sync(rbd_dev);
> + rbd_dev_refresh(rbd_dev);
> + if (ret)
> + rbd_warn(rbd_dev, "refresh failed: %d", ret);
> +}
The watch reset here could potentially race with the
rbd_dev_header_unwatch_sync() performed on unmap. To handle this,
notify_wq should be stopped prior to unwatch in do_rbd_remove().
Cheers, David
next prev parent reply other threads:[~2016-02-11 17:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-17 14:25 [PATCHv2 0/6] support watch/notify version 2 Douglas Fuller
2015-06-17 14:25 ` [PATCHv2 1/6] ceph/rbd: add support for watch notify payloads Douglas Fuller
2015-06-17 14:25 ` [PATCHv2 2/6] ceph/rbd: add support for header version 2 and 3 Douglas Fuller
2015-06-17 14:25 ` [PATCHv2 3/6] ceph/rbd: update watch-notify ceph_osd_op Douglas Fuller
2015-06-17 14:25 ` [PATCHv2 4/6] osd_client, rbd: update event interface for watch/notify2 Douglas Fuller
2016-02-11 17:51 ` David Disseldorp [this message]
2015-06-17 14:25 ` [PATCHv2 5/6] osd_client: add support for notify payloads via notify event Douglas Fuller
2015-06-17 16:11 ` Mike Christie
2015-06-17 17:07 ` Douglas Fuller
2015-06-23 0:20 ` Mike Christie
2015-06-17 14:25 ` [PATCHv2 6/6] osd_client: send watch ping messages Douglas Fuller
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=20160211185127.753d724f@g21.suse.de \
--to=ddiss@suse.de \
--cc=ceph-devel@vger.kernel.org \
--cc=dfuller@redhat.com \
--cc=mchristi@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox