linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/13] removing the on-stack struct request
@ 2008-05-01 12:27 FUJITA Tomonori
  2008-05-01 12:27 ` [PATCH v2 01/13] ide-cd: convert ide_cd_queue_pc to use blk_execute_rq FUJITA Tomonori
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: FUJITA Tomonori @ 2008-05-01 12:27 UTC (permalink / raw)
  To: linux-ide; +Cc: jens.axboe, bzolnier, petkovbb

This is an updated version of the patchset to clean up the asymmetry
of blk_get/put_request usage:

http://marc.info/?l=linux-ide&m=120882410712466&w=2

This patchset removes the code calling blk_put_request against the
requests that are not allocated via blk_get_request. They can use
__GFP_WAIT allocation so we can easily convert them to
use blk_get/put_request properly.

This patchset enables us to 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);
}

The major changes are:

- I remove the ide_wait/head_wait path in ide_do_drive_cmd(). It does
the same thing that blk_execute_rq() does. So let's simply use
blk_execute_rq(). The nice side effect is that I unexport
blk_end_sync_rq() since I converted all the users.

- I drop the unnecessary patch to make ide_do_drive_cmd return
rq->errors:

http://marc.info/?l=linux-ide&m=120882410612456&w=2

#1-10 are for the ide subsystem and #11-13 for the block layer. This
is against the lastest Linus tree.



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

end of thread, other threads:[~2008-05-06 16:04 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-01 12:27 [PATCH v2 00/13] removing the on-stack struct request FUJITA Tomonori
2008-05-01 12:27 ` [PATCH v2 01/13] ide-cd: convert ide_cd_queue_pc to use blk_execute_rq FUJITA Tomonori
2008-05-01 12:27   ` [PATCH v2 02/13] ide-cd: convert ide_do_drive_cmd path " FUJITA Tomonori
2008-05-01 12:28     ` [PATCH v2 03/13] ide-disk: " FUJITA Tomonori
2008-05-01 12:28       ` [PATCH v2 04/13] ide-floppy: " FUJITA Tomonori
2008-05-01 12:28         ` [PATCH v2 05/13] ide-taskfile: " FUJITA Tomonori
2008-05-01 12:28           ` [PATCH v2 06/13] ide-tape: " FUJITA Tomonori
2008-05-01 12:28             ` [PATCH v2 07/13] ide: " FUJITA Tomonori
2008-05-01 12:28               ` [PATCH v2 08/13] ide: remove ide_wait/head_wait path in ide_do_drive_cmd FUJITA Tomonori
2008-05-01 12:28                 ` [PATCH v2 09/13] ide: remove ide_init_drive_cmd FUJITA Tomonori
2008-05-01 12:28                   ` [PATCH v2 10/13] ide-cd: remove ide_cd_init_rq FUJITA Tomonori
2008-05-01 12:28                     ` [PATCH v2 11/13] block: convert pd_special_command to use blk_execute_rq FUJITA Tomonori
2008-05-01 12:28                       ` [PATCH v2 12/13] block: remove the checking for NULL queue in blk_put_request FUJITA Tomonori
2008-05-01 12:28                         ` [PATCH v2 13/13] block: unexport blk_end_sync_rq FUJITA Tomonori
2008-05-02 14:04 ` [PATCH v2 00/13] removing the on-stack struct request Borislav Petkov
2008-05-02 16:13   ` FUJITA Tomonori
2008-05-03 13:10 ` Bartlomiej Zolnierkiewicz
2008-05-05 13:02   ` FUJITA Tomonori
2008-05-05 16:49     ` Bartlomiej Zolnierkiewicz
2008-05-05 19:04       ` Jens Axboe
2008-05-06  2:39         ` FUJITA Tomonori
2008-05-06 16:18           ` Bartlomiej Zolnierkiewicz

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).