2009/5/28 Mark Johnson <[email protected]>:
>
>
> Juergen Keil wrote:
>>
>> Hi,
>>
>> Can anyone provide some info on the root cause for bug 6830386 ?
>> "System panics when delete logical partition during dd on it in PV host"
>> http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6830386
>>
>>
>> Does it have the same root cause as the one for opensolaris defect 9198;
>> a read past EOF for an xdf  devices leaves the "vdp->xdf_dev_lk" mutex
>> locked?
>> http://defect.opensolaris.org/bz/show_bug.cgi?id=9198#c1
>
>
> Yes, the suggested fix from bug 6830386 is..
>
> static int
> xdf_strategy(struct buf *bp)
> {
> ...
> ...
>        if (bp->b_blkno > p_blkct) {
>                DPRINTF(IO_DBG, ("x...@%s: block %lld exceeds VBD size
> %"PRIu64,
>                    vdp->xdf_addr, (longlong_t)bp->b_blkno,
> (uint64_t)p_blkct));
> +               mutex_exit(&vdp->xdf_dev_lk);
>                xdf_io_err(bp, EINVAL, 0);
>                return (0);
>        }


What about the next "if (bp->b_blkno == p_blkct) ..." ?
The mutex_exit should be added in two places...
_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to