All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>,
	Mike Anderson <andmike@linux.vnet.ibm.com>,
	Mike Christie <michaelc@cs.wisc.edu>,
	Christoph Hellwig <hch@lst.de>,
	James Bottomley <James.Bottomley@HansenPartnership.com>,
	Andrew Morton <akpm@osdl.org>,
	Alan Stern <stern@rowland.harvard.edu>,
	Hannes Reinecke <hare@suse.de>,
	Boaz Harrosh <bharrosh@panasas.com>,
	Jens Axboe <jens.axboe@oracle.com>,
	linux-scsi <linux-scsi@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	"Linux-iSCSI.org Target Dev"
	<linux-iscsi-target-dev@googlegroups.com>
Subject: Re: Changes to Linux/SCSI target mode infrastructure for v2.6.28
Date: Tue, 02 Dec 2008 12:43:45 +0900	[thread overview]
Message-ID: <4934AEF1.4080009@kernel.org> (raw)
In-Reply-To: <1228188330.13241.184.camel@haakon2.linux-iscsi.org>

Hello, Nicholas.

Nicholas A. Bellinger wrote:
> Ok, I am up and running using the following patch against v2.6.28-rc6
> (along with Tejun's patch).   Comments please..?
> 
> diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
> index f5d3b96..77f1fe0 100644
> --- a/drivers/scsi/scsi_lib.c
> +++ b/drivers/scsi/scsi_lib.c
> @@ -1505,7 +1507,7 @@ static void scsi_kill_request(struct request *req, struct request_queue *q)
>         struct scsi_target *starget = scsi_target(sdev);
>         struct Scsi_Host *shost = sdev->host;
>  
> -       blkdev_dequeue_request(req);
> +       elv_dequeue_request(req->q, req);

I don't think this really matters.  Either one wouldn't really matter.

>         if (unlikely(cmd == NULL)) {
>                 printk(KERN_CRIT "impossible request in %s.\n",
> @@ -1634,7 +1636,7 @@ static void scsi_request_fn(struct request_queue *q)
>                  * Remove the request from the request list.
>                  */
>                 if (!(blk_queue_tagged(q) && !blk_queue_start_tag(q, req)))
> -                       blkdev_dequeue_request(req);
> +                       elv_dequeue_request(req->q, req);
>                 sdev->device_busy++;
>  
>                 spin_unlock(q->queue_lock);

And this change is incorrect.  Timer should start here.  I don't think
you're seeing the same problem.  I'll reply to the original message.

Thanks.

-- 
tejun

  reply	other threads:[~2008-12-02  3:43 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-02  1:52 Changes to Linux/SCSI target mode infrastructure for v2.6.28 Nicholas A. Bellinger
2008-12-02  1:52 ` Nicholas A. Bellinger
2008-12-02  2:04 ` Nicholas A. Bellinger
2008-12-02  3:10   ` Nicholas A. Bellinger
2008-12-02  3:25     ` Nicholas A. Bellinger
2008-12-02  3:43       ` Tejun Heo [this message]
2008-12-02  4:18     ` Tejun Heo
2008-12-02  5:05       ` Nicholas A. Bellinger
2008-12-02  6:40         ` Mike Anderson
2008-12-02  7:49           ` Nicholas A. Bellinger
2008-12-02  8:30           ` Nicholas A. Bellinger
2008-12-02  8:35             ` Nicholas A. Bellinger
2008-12-02  9:13               ` Mike Anderson
2008-12-02 23:18                 ` Nicholas A. Bellinger
2008-12-03  0:47                   ` Nicholas A. Bellinger
2008-12-02  8:39 ` Boaz Harrosh
2008-12-02 10:34   ` Nicholas A. Bellinger

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=4934AEF1.4080009@kernel.org \
    --to=tj@kernel.org \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=akpm@osdl.org \
    --cc=andmike@linux.vnet.ibm.com \
    --cc=bharrosh@panasas.com \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --cc=jens.axboe@oracle.com \
    --cc=linux-iscsi-target-dev@googlegroups.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=michaelc@cs.wisc.edu \
    --cc=nab@linux-iscsi.org \
    --cc=stern@rowland.harvard.edu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.