From: Mike Christie <michaelc@cs.wisc.edu>
To: SCSI Mailing List <linux-scsi@vger.kernel.org>, dougg@torque.net
Subject: [PATCH] remove extra queue unplug calls
Date: Mon, 24 May 2004 19:04:55 -0700 [thread overview]
Message-ID: <40B2A9C7.2070300@cs.wisc.edu> (raw)
[-- Attachment #1: Type: text/plain, Size: 315 bytes --]
blk_insert_request will do the right thing and either unplug the queue or
call the request_fn, so users of scsi_do_req do not need to call
generic_unplug_device themselves. The attached patch just removes that
call from scsi_lib.c and the sg driver after they do a scsi_do_req.
It was built against 2.6.7-rc1
Mike
[-- Attachment #2: rm-extra-unplugs.patch --]
[-- Type: text/plain, Size: 1142 bytes --]
diff -arup linux-2.6.7-rc1/drivers/scsi/scsi_lib.c linux-2.6.7-rc1-work/drivers/scsi/scsi_lib.c
--- linux-2.6.7-rc1/drivers/scsi/scsi_lib.c 2004-05-24 18:55:54.445045005 -0700
+++ linux-2.6.7-rc1-work/drivers/scsi/scsi_lib.c 2004-05-24 18:59:39.404883171 -0700
@@ -255,7 +255,6 @@ void scsi_wait_req(struct scsi_request *
sreq->sr_request->rq_status = RQ_SCSI_BUSY;
scsi_do_req(sreq, cmnd, buffer, bufflen, scsi_wait_done,
timeout, retries);
- generic_unplug_device(sreq->sr_device->request_queue);
wait_for_completion(&wait);
sreq->sr_request->waiting = NULL;
if (sreq->sr_request->rq_status != RQ_SCSI_DONE)
diff -arup linux-2.6.7-rc1/drivers/scsi/sg.c linux-2.6.7-rc1-work/drivers/scsi/sg.c
--- linux-2.6.7-rc1/drivers/scsi/sg.c 2004-05-24 18:55:54.510036561 -0700
+++ linux-2.6.7-rc1-work/drivers/scsi/sg.c 2004-05-24 18:59:39.512869215 -0700
@@ -727,7 +727,6 @@ sg_common_write(Sg_fd * sfp, Sg_request
(void *) SRpnt->sr_buffer, hp->dxfer_len,
sg_cmd_done, timeout, SG_DEFAULT_RETRIES);
/* dxfer_len overwrites SRpnt->sr_bufflen, hence need for b_malloc_len */
- generic_unplug_device(q);
return 0;
}
reply other threads:[~2004-05-25 2:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=40B2A9C7.2070300@cs.wisc.edu \
--to=michaelc@cs.wisc.edu \
--cc=dougg@torque.net \
--cc=linux-scsi@vger.kernel.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