librbd discard bug problems - i got it

2012-11-19 Thread Stefan Priebe
Hello Josh, after digging three days around i got it. The problem is in aio_discard in internal.cc. The i/o fails when AioZero or AioTruncate is used. It works fine with AioRemove. It seems to depend on overlapping. Hopefully i'm able to provide a patch this nicht. Greets, Stefan -- To

Re: librbd discard bug problems - i got it

2012-11-19 Thread Stefan Priebe
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? rbd_aio_bh_cb got error back. Code: -512 Error: 0 rbd_aio_bh_cb got error

Re: librbd discard bug problems - i got it

2012-11-19 Thread 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

Re: librbd discard bug problems - i got it

2012-11-19 Thread Stefan Priebe
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

Re: librbd discard bug problems - i got it

2012-11-19 Thread 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

Re: librbd discard bug problems - i got it

2012-11-19 Thread Stefan Priebe
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

Re: librbd discard bug problems - i got it

2012-11-19 Thread Josh Durgin
On 11/19/2012 04:00 PM, Stefan Priebe wrote: 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. Could you