From: Stefan Priebe <s.priebe@profihost.ag>
To: Josh Durgin <josh.durgin@inktank.com>
Cc: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: librbd discard bug problems -> i got it
Date: Tue, 20 Nov 2012 01:00:53 +0100 [thread overview]
Message-ID: <50AAC835.908@profihost.ag> (raw)
In-Reply-To: <50AAC51C.1090904@inktank.com>
Hi Josh,
i don't get it. Every debug line i print is a prositive fine value. BUt
rbd_aio_bh_cb get's called with these values. As you can see that are
not much values i copied all values < 0 from log for discarding a whole
30GB device.
Stefan
Am 20.11.2012 00:47, schrieb Josh Durgin:
> On 11/19/2012 03:42 PM, Stefan Priebe wrote:
>> Am 20.11.2012 00:33, schrieb Josh Durgin:
>>> On 11/19/2012 03:16 PM, Stefan Priebe wrote:
>>>> mhm qemu rbd block driver. Get's always these errors back. As
>>>> rbd_aio_bh_cb is directly called from librbd the problem must be there.
>>>> Strangely i can't find where rbd_aio_bh_cb get's called with -512.
>>>>
>>>> ANy further ideas?
>>>
>>> Two ideas:
>>>
>>> 1) Is rbd_finish_aiocb getting this same return value?
>> Will check this tomorrow.
>>
>>
>>> 2) Perhaps it's an issue with the return value wrapping around with
>>> very large discards. Adding some logging of the return values of each
>>> rados operation in AioCompletion::complete_request() might give us a
>>> clue. These large negative return values are suspicious.
>>
>> Good idea. As r and rval is int it is limited. But
>> AioCompletion::complete_request is adding more and more stuff to rval.
>> What could be a solution? Bump rval to int64? Or wrap to around to start
>> at 0 again?
>
> The final return value is limited to int at a few levels. Probably it's
> best to make discard alway return 0 on success. aio_discard should
> already be doing this, but perhaps it's not in this case.
>
> Josh
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-11-20 0:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-19 21:19 librbd discard bug problems -> i got it Stefan Priebe
2012-11-19 22:38 ` Josh Durgin
2012-11-19 22:45 ` Stefan Priebe
2012-11-19 22:48 ` Josh Durgin
2012-11-19 23:16 ` Stefan Priebe
2012-11-19 23:33 ` Josh Durgin
2012-11-19 23:42 ` Stefan Priebe
2012-11-19 23:47 ` Josh Durgin
2012-11-20 0:00 ` Stefan Priebe [this message]
2012-11-20 0:28 ` Josh Durgin
2012-11-20 9:50 ` Stefan Priebe - Profihost AG
2012-11-20 12:46 ` librbd discard bug problems -> i REALLY " Stefan Priebe - Profihost AG
2012-11-20 17:09 ` Josh Durgin
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=50AAC835.908@profihost.ag \
--to=s.priebe@profihost.ag \
--cc=ceph-devel@vger.kernel.org \
--cc=josh.durgin@inktank.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