mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC]block: don't mark flush request as SOFTBARRIER
@ 2011-09-08  1:29 Shaohua Li
  2011-09-11  2:51 ` Tejun Heo
  0 siblings, 1 reply; 5+ messages in thread
From: Shaohua Li @ 2011-09-08  1:29 UTC (permalink / raw)
  To: lkml; +Cc: Jens Axboe, Tejun Heo, Vivek Goyal

I'm wondering why flush request should be marked as SOFTBARRIER. Current flush
sequence guarantees the correctness of flush even the request is reordered by
ioscheduler.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>

diff --git a/block/elevator.c b/block/elevator.c
index a3b64bc..e589b76 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -715,7 +715,6 @@ void __elv_add_request(struct request_queue *q, struct request *rq, int where)
 		break;
 
 	case ELEVATOR_INSERT_FLUSH:
-		rq->cmd_flags |= REQ_SOFTBARRIER;
 		blk_insert_flush(rq);
 		break;
 	default:



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

end of thread, other threads:[~2011-09-14  6:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-08  1:29 [RFC]block: don't mark flush request as SOFTBARRIER Shaohua Li
2011-09-11  2:51 ` Tejun Heo
2011-09-13  1:04   ` Shaohua Li
2011-09-13  7:46     ` Tejun Heo
2011-09-14  6:04       ` Shaohua Li

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®