Date: Mon, 13 Jul 2015 10:39:15 +0200 From: Hans Petter Selasky <hps@selasky.org> To: Kohji Okuno <okuno.kohji@jp.panasonic.com>, freebsd-current@freebsd.org, Alexander Motin <mav@FreeBSD.org> Subject: Re: Why shoud we cause panic in scsi_da.c? Message-ID: <55A37933.3000802@selasky.org> In-Reply-To: <20150713.171110.531869520391748650.okuno.kohji@jp.panasonic.com> References: <20150709.150520.1823457260978955949.okuno.kohji@jp.panasonic.com> <20150713.171110.531869520391748650.okuno.kohji@jp.panasonic.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 07/13/15 10:11, Kohji Okuno wrote:
> Hi,
>
> Could you comment on my quesion?
>
> Best regards,
> Kohji Okuno
>
>> Hi,
>>
>> I found panic() in scsi_da.c. Please find the following.
>> I think we should return with error without panic().
>> What do you think about this?
>>
>> scsi_da.c:
>> 3018 } else if (bp != NULL) {
>> 3019 if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0)
>> 3020 panic("REQ_CMP with QFRZN");
>>
Hi,
It looks to me more like an KASSERT() is appropriate here.
Might be some people which can answer this are on vacation currently.
--HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55A37933.3000802>
