Re: [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
- From: Boaz Harrosh <bharrosh@xxxxxxxxxxx>
- Date: Sun, 06 Jan 2008 18:19:17 +0200
On Sun, Jan 06 2008 at 5:43 +0200, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
This all still leaves the question unanswered why that commit
6f5391c283d7fdcf24bf40786ea79061919d1e1d changed any behaviour at all.
Because the thing that Peter is describing has nothing to do with any
low-level drivers what-so-ever.
Linus
James Matthew.
I have a (very) wild guess at what maybe have changed with the cmnd->done
patch:
Do you remember the effective loop in scsi_lib:scsi_end_request() where
if bufflen was smaller then original request size, do to truncation
of bufflen by ULD, then the remaining of the request is re-queued again
as a new scsi-command. Well I think that the old system would call
cmnd->done for every iteration, and the new system, since the done is
called by the block-Q, does not see the resubmit of the new command.
I have not followed all code path of the matter, but I know that sr does
alters bufflen in some cases.
All this is not a bug in itself, but it is a change in behavior that might
cause the current sr hack to fail.
Boaz
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
- From: James Bottomley
- Re: [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
- References:
- [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
- From: Ingo Molnar
- Re: [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
- From: James Bottomley
- Re: [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
- From: Linus Torvalds
- Re: [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
- From: Matthew Wilcox
- Re: [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
- From: James Bottomley
- Re: [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
- From: Linus Torvalds
- Re: [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
- From: James Bottomley
- Re: [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
- From: Linus Torvalds
- Re: [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
- From: Peter Osterlund
- Re: [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
- From: Linus Torvalds
- [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
- Prev by Date: Re: [PATCH] x86: ioport_{32|64}.c unification -v2
- Next by Date: Re: 2.6.24-rc6-git12: Reported regressions from 2.6.23
- Previous by thread: Re: [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
- Next by thread: Re: [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
- Index(es):
Relevant Pages
|