login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
September
»
28
Re: scatterlist.c: bug in sg_next()?
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Leon Woestenberg
Subject:
Re: scatterlist.c: bug in sg_next()?
Date: Sunday, September 28, 2008 - 8:51 am
Hello, On Sun, Sep 28, 2008 at 5:28 PM, Boaz Harrosh <bharrosh@panasas.com> wrote:
quoted text
> Leon Woestenberg wrote: >> In sg_next(), after following a chain_ptr, a few more checks should be >> performed. >> The rare case exists that the first entry in the chained list is a >> last marker, in case NULL must be returned. > > No! the last marker is set on a valid sg entry. Only it's next > is no longer valid. So the check at the top is for the Next-sg > not the passed-in-sg. What you thought of is a NULL terminating > sg-list. The end marker is so to save the extra NULL entry. >
Ah yes, the lower bit magic. Thanks! Sorry for the noise. Regards, -- Leon --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
scatterlist.c: bug in sg_next()?
, Leon Woestenberg
, (Sun Sep 28, 8:15 am)
Re: scatterlist.c: bug in sg_next()?
, Boaz Harrosh
, (Sun Sep 28, 8:28 am)
Re: scatterlist.c: bug in sg_next()?
, Leon Woestenberg
, (Sun Sep 28, 8:51 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Jens Axboe
Re: [BUG] Linux 2.6.25-rc2 - Regression from 2.6.24-rc1-git1 softlockup while bo...
Ingo Molnar
Re: [RFC/RFT PATCH] sched: automated per tty task groups
Ingo Molnar
Re: [GIT PULL] time.c - respin
Borislav Petkov
drm_vm.c:drm_mmap: possible circular locking dependency detected (was: Re: Linux 2...
git
:
Junio C Hamano
Re: git-svnimport
Michal Sojka
[PATCHv5 1/2] filter-branch: Fix to allow replacing submodules with another content
Junio C Hamano
Re: Fwd: git status options feature suggestion
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Ursula Braun
[patch 2/8] [PATCH] af_iucv: sync sk shutdown flag if iucv path is quiesced
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
git-commits-head
:
Linux Kernel Mailing List
ARM: S3C64XX: DMA: Callback with correct buffer pointer
Linux Kernel Mailing List
sata_mv: drop unncessary EH callback resetting
Linux Kernel Mailing List
libata: disable ATAPI AN by default
Linux Kernel Mailing List
ARM: 5905/1: ARM: Global ASID allocation on SMP
Linux Kernel Mailing List
timer: Try to survive timer callback preempt_count leak
openbsd-misc
:
Rene Maroufi
smtpd: Aliases only work with for local alias aliases
Stephen J. Bevan
GRE over IPsec
Christophe Rioux
Implementation example of snmp
Darrin Chandler
Re: strange output on openbsd C code
Nick Holland
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate