Bacula fails on FreeBSD 10.x / "mt fsf" infinitely proceeds

Joerg Wunsch freebsd-scsi at uriah.heep.sax.de
Wed Jul 30 20:42:02 UTC 2014


freebsd-scsi at uriah.heep.sax.de (Joerg Wunsch) wrote:

> I think, somehow, SA_CCB_WAITING needs to be reintroduced into
> sastart(), but the differences to the code in FreeBSD 8.x are
> too many for me to decide *where*.  Perhaps it is the piece
> 
>                 if (periph->immediate_priority <= periph->pinfo.priority) {
>                         CAM_DEBUG_PRINT(CAM_DEBUG_SUBTRACE,
>                                         ("queuing for immediate ccb\n"));
>                         Set_CCB_Type(start_ccb, SA_CCB_WAITING);
>                         SLIST_INSERT_HEAD(&periph->ccb_list, &start_ccb->ccb_h,
>                                           periph_links.sle);
>                         periph->immediate_priority = CAM_PRIORITY_NONE;
>                         wakeup(&periph->ccb_list);
>                 } else if (bp == NULL) {
> 
> that needs to be placed before the current check for bp == NULL?

The respective change that broke it (on HEAD) was r256843.  I'm Cc'ing
Alexander Motin (mav@) who committed that change.

-- 
cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)


More information about the freebsd-scsi mailing list