linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/11] removing the on-stack struct request
@ 2008-04-22  0:26 FUJITA Tomonori
  2008-04-22  0:26 ` [PATCH 01/11] ide: use blk_get_request in the ide_do_drive_cmd path using ide_wait FUJITA Tomonori
  2008-04-22  9:14 ` [PATCH 00/11] removing the on-stack struct request Bartlomiej Zolnierkiewicz
  0 siblings, 2 replies; 24+ messages in thread
From: FUJITA Tomonori @ 2008-04-22  0:26 UTC (permalink / raw)
  To: linux-ide; +Cc: fujita.tomonori, bzolnier, jens.axboe

This patchset converts some of the users of struct request on the
stack to use blk_get_request (as discussed in the large command
support thread [*1]).

IDE has the most users of the on-stack struct request. The on-stack
struct request has the benefit that it'll always work but I think that
using blk_get_request properly make the code clearer.

I've not got rid of all the on-stack struct request yet, but at least
this patchset removes the users of struct request that calls
blk_put_request. That is, we can remove the following hack in
blk_put_request:

/*
 * Gee, IDE calls in w/ NULL q.  Fix IDE and remove the
 * following if (q) test.
 */
if (q) {
	spin_lock_irqsave(q->queue_lock, flags);
	__blk_put_request(q, req);
	spin_unlock_irqrestore(q->queue_lock, flags);
}

This patchset is against Bartlomiej's ide tree. #1-9 patches are for
the IDE subsystem and #10-11 are for the block layer. #10-11 depends
on #1-9 so probably it would be easier to push all the patch via a
single tree.

[*1]
http://marc.info/?l=linux-scsi&m=120817161219068&w=2



^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2008-04-23 10:32 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-22  0:26 [PATCH 00/11] removing the on-stack struct request FUJITA Tomonori
2008-04-22  0:26 ` [PATCH 01/11] ide: use blk_get_request in the ide_do_drive_cmd path using ide_wait FUJITA Tomonori
2008-04-22  0:26   ` [PATCH 02/11] ide-floppy: use blk_get_request in the ide_do_drive_cmd path FUJITA Tomonori
2008-04-22  0:26     ` [PATCH 03/11] ide-taskfile: " FUJITA Tomonori
2008-04-22  0:26       ` [PATCH 04/11] ide-disk: " FUJITA Tomonori
2008-04-22  0:26         ` [PATCH 05/11] ide-cd: convert ide_cd_queue_pc to use blk_get_request FUJITA Tomonori
2008-04-22  0:26           ` [PATCH 06/11] ide: make ide_do_drive_cmd return rq->errors FUJITA Tomonori
2008-04-22  0:26             ` [PATCH 07/11] ide-tape: use blk_get_request in the ide_do_drive_cmd path FUJITA Tomonori
2008-04-22  0:26               ` [PATCH 08/11] ide-cd: " FUJITA Tomonori
2008-04-22  0:26                 ` [PATCH 09/11] ide: call blk_put_request properly FUJITA Tomonori
2008-04-22  0:26                   ` [PATCH 10/11] block: convert pd to use blk_get_request FUJITA Tomonori
2008-04-22  0:26                     ` [PATCH 11/11] block: remove the checking for NULL queue in blk_put_request FUJITA Tomonori
2008-04-23  7:31               ` [PATCH 07/11] ide-tape: use blk_get_request in the ide_do_drive_cmd path Borislav Petkov
2008-04-23  8:25                 ` FUJITA Tomonori
2008-04-23 10:20                   ` Boris Petkov
2008-04-23  7:32             ` [PATCH 06/11] ide: make ide_do_drive_cmd return rq->errors Borislav Petkov
2008-04-23  8:25               ` FUJITA Tomonori
2008-04-23 10:27                 ` Boris Petkov
2008-04-22  9:14 ` [PATCH 00/11] removing the on-stack struct request Bartlomiej Zolnierkiewicz
2008-04-23  7:40   ` Borislav Petkov
2008-04-23  7:43     ` Jens Axboe
2008-04-23  8:25     ` FUJITA Tomonori
2008-04-23  8:27       ` Jens Axboe
2008-04-23 10:32         ` Boris Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).