public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>,
	Ingo Molnar <mingo@elte.hu>,
	linux-kernel@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
Date: Wed, 2 Jan 2008 12:40:30 -0700	[thread overview]
Message-ID: <20080102194030.GC11638@parisc-linux.org> (raw)
In-Reply-To: <alpine.LFD.1.00.0801021113150.32517@woody.linux-foundation.org>

On Wed, Jan 02, 2008 at 11:19:14AM -0800, Linus Torvalds wrote:
> It's totally immaterial if we have one reporter or many. The fact is, that 
> thing has been outstanding for almost two months now. The root cause is 
> almost certainly known (and Matthew is apparently even aware of it), but 

I really don't think the root cause is known.

> By now, it needs to either have a patch, or to be reverted. It's too late 
> to make excuses.

I think reverting it is the correct thing to do.

> And no, it doesn't really need any more reporters or ways to reproduce it, 
> all it needs is looking at the patch and seeing what the differences are 
> AT A SOURCE level. And quite frankly, I see one huge honking difference, 
> which is that new test for 
> 
> 	if (cmd->request->cmd_type != REQ_TYPE_BLOCK_PC) 
> 
> which will disable all the crud that sd_done() does.

sd_done and sr_done are called for REQ_TYPE_FS -- if the request comes
in through one of the SG interfaces, we call scsi_setup_blk_pc_cmnd()
which sets the ->done callback to scsi_blk_pc_done.

> So I think you are making totally idiotic excuses. I may not know the SCSI 
> layer all that intimately, and maybe I'm wrong and there is some other 
> cause for this, but quite frankly, I doubt it. And I can look at just the 
> patch and have a damn good idea of why something is broken, but I can't 
> actually fix it myself because I don't know how to look up a a 
> "scsi_driver" from a "scsi_cmnd" sanely.

That's in the patch.  But it would be the wrong thing to do because SG
commands should not be molested by the sr/sd driver.

-- 
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."

  reply	other threads:[~2008-01-02 19:40 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-02 16:25 [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done" Ingo Molnar
2008-01-02 16:46 ` James Bottomley
2008-01-02 19:19   ` Linus Torvalds
2008-01-02 19:40     ` Matthew Wilcox [this message]
2008-01-02 19:57       ` Linus Torvalds
2008-01-02 20:17         ` Christoph Hellwig
2008-01-02 20:49           ` Linus Torvalds
2008-01-02 20:53             ` Matthew Wilcox
2008-01-02 20:18         ` Matthew Wilcox
2008-01-02 20:12       ` James Bottomley
2008-01-02 20:45         ` Linus Torvalds
2008-01-02 23:33           ` James Bottomley
2008-01-03  1:58             ` Linus Torvalds
2008-01-06  2:55               ` Peter Osterlund
2008-01-06  3:43                 ` Linus Torvalds
2008-01-06 10:17                   ` Peter Osterlund
2008-01-06 14:04                   ` James Bottomley
2008-01-06 14:42                   ` James Bottomley
2008-01-06 15:01                     ` Peter Osterlund
2008-01-06 18:14                     ` Linus Torvalds
2008-01-06 18:44                       ` Linus Torvalds
2008-01-06 18:54                         ` James Bottomley
2008-01-06 16:19                   ` Boaz Harrosh
2008-01-06 16:47                     ` James Bottomley
2008-01-06 13:57                 ` James Bottomley
2008-01-06 14:47                   ` Ingo Molnar
2008-01-06 15:20                     ` James Bottomley
2008-01-06 15:45                       ` Adrian Bunk
2008-01-06 16:00                         ` James Bottomley
2008-01-06 16:12                       ` Ingo Molnar
2008-01-06 17:10                         ` James Bottomley
2008-01-08 16:55                           ` Ingo Molnar
2008-01-06 17:11                       ` Matthew Wilcox
2008-01-06 17:36                         ` James Bottomley
2008-01-06 18:34                           ` Willy Tarreau
2008-01-06 18:56                             ` Adrian Bunk
2008-01-06 19:10                               ` Willy Tarreau
2008-01-06 19:58                                 ` Adrian Bunk
2008-01-06 21:08                                   ` Willy Tarreau
2008-01-06 22:25                                     ` Adrian Bunk
2008-01-07 20:50                                     ` Valdis.Kletnieks
2008-01-07 21:31                                       ` Alan Cox
2008-01-07 21:37                                       ` Matthew Wilcox
2008-01-07 23:04                                         ` Valdis.Kletnieks
2008-01-07 23:19                                           ` Matthew Wilcox
2008-01-08 16:47                                             ` Stefan Richter
2008-01-08 17:11                                               ` Linus Torvalds
2008-01-08 20:01                                                 ` Ingo Molnar
2008-01-09  4:01                                             ` Valdis.Kletnieks
2008-01-09  4:10                                               ` Andrew Morton
2008-01-09  6:03                                                 ` Willy Tarreau
2008-01-09  4:03                                             ` Valdis.Kletnieks
2008-01-07 15:25                                 ` John Stoffel
2008-01-07 19:04                                   ` Stefan Richter
2008-01-07 19:59                                     ` John Stoffel
2008-01-06 17:29                     ` Stefan Richter
2008-01-06 20:26                       ` Ingo Molnar
  -- strict thread matches above, loose matches on Subject: below --
2008-01-06 13:55 Thomas Meyer
2008-01-06 16:56 ` Matthew Wilcox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080102194030.GC11638@parisc-linux.org \
    --to=matthew@wil.cx \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox