On Thu, Oct 18 2007, Benny Halevy wrote: > > return sg; > > } > > @@ -83,6 +96,9 @@ static inline struct scatterlist *sg_last(struct scatterlist *sgl, > > ret = sg; > > > > #endif > > +#ifdef CONFIG_DEBUG_SG > > + BUG_ON(sgl[0].sg_magic != SG_MAGIC); > > can it also do BUG_ON(!sg_is_last(sg))? That would make sense, definitely. I'll add that. -- Jens Axboe - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [bug] ata subsystem related crash with latest -git
- From: Jens Axboe <[email protected]>
- Re: [bug] ata subsystem related crash with latest -git
- References:
- Re: [bug] ata subsystem related crash with latest -git
- From: Jens Axboe <[email protected]>
- Re: [bug] ata subsystem related crash with latest -git
- From: David Miller <[email protected]>
- Re: [bug] ata subsystem related crash with latest -git
- From: Jens Axboe <[email protected]>
- Re: [bug] ata subsystem related crash with latest -git
- From: David Miller <[email protected]>
- Re: [bug] ata subsystem related crash with latest -git
- From: Jens Axboe <[email protected]>
- Re: [bug] ata subsystem related crash with latest -git
- From: Jens Axboe <[email protected]>
- Re: [bug] ata subsystem related crash with latest -git
- From: Benny Halevy <[email protected]>
- Re: [bug] ata subsystem related crash with latest -git
- Prev by Date: Re: [bug] ata subsystem related crash with latest -git
- Next by Date: Re: [bug] ata subsystem related crash with latest -git
- Previous by thread: Re: [bug] ata subsystem related crash with latest -git
- Next by thread: Re: [bug] ata subsystem related crash with latest -git
- Index(es):