mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] use q->prep_rq_fn for flush requests instead of q->prepare_flush_fn()
@ 2010-07-02  7:33 FUJITA Tomonori
  2010-07-02  7:33 ` [PATCH 1/2] block: introduce REQ_FLUSH flag FUJITA Tomonori
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: FUJITA Tomonori @ 2010-07-02  7:33 UTC (permalink / raw)
  To: James.Bottomley, axboe; +Cc: hch, linux-kernel, linux-scsi, fujita.tomonori

scsi-ml builds flush requests via q->prepare_flush_fn(), however,
builds discard requests via q->prep_rq_fn.

Using two different mechnisms for the similar requests (building
commands in SCSI ULD) doesn't make sense.

Handing both via q->prep_rq_fn makes the code simpler.

We could kill q->prepare_flush_fn(). Except for ide, all the users
just mark flush requests. They can use REQ_FLUSH flag instead. Ide can
do like SCSI.

==
 block/blk-barrier.c |   12 ++++--------
 drivers/scsi/sd.c   |   26 ++++++++++++++++----------
 include/linux/bio.h |    2 ++
 3 files changed, 22 insertions(+), 18 deletions(-)

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

end of thread, other threads:[~2010-07-02  7:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-02  7:33 [PATCH 0/2] use q->prep_rq_fn for flush requests instead of q->prepare_flush_fn() FUJITA Tomonori
2010-07-02  7:33 ` [PATCH 1/2] block: introduce REQ_FLUSH flag FUJITA Tomonori
2010-07-02  7:33 ` [PATCH 2/2] scsi: build flush requests via q->prep_rq_fn FUJITA Tomonori
2010-07-02  7:39 ` [PATCH 0/2] use q->prep_rq_fn for flush requests instead of q->prepare_flush_fn() FUJITA Tomonori
2010-07-02  7:52 ` Christoph Hellwig
2010-07-02  7:53   ` Jens Axboe
2010-07-02  7:56     ` FUJITA Tomonori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®