Re: Why shoud we cause panic in scsi_da.c?

From: Hans Petter Selasky <hps_at_selasky.org>
Date: Mon, 13 Jul 2015 10:39:15 +0200
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
Received on Mon Jul 13 2015 - 06:38:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:58 UTC