SEARCH  

NEWS

2010.10.06:11:36:28
Przez komiks i animację do wiedzy ekonomicznej
Komiksy, animacje i scenariusze lekcji, przygotowane przez metodyków z Ośrodka Rozwoju Edukacji we współpracy z ekonomistami Fundacji FOR, będą dystrybuowane bezpłatnie wśród nauczycieli szkół gimnazjalnych i ponadgimnazjalnych, prowadzących lekcje z podstaw przedsiębiorczości i wiedzy o społeczeństwie. Wspomniane materiały będą dostępne dla nauczycieli na stronie internetowej FOR.

 

messageID:522660007850
author:Tejun Heo
title: PATCH 01 41 ide remove unnecessary blk que
Unplugging from a request function doesnt really help much (its already in the request_fn) and soon block layer will be updated to mix barrier sequence with other commands, so theres no need to treat queue flushing any differently. ide was the only user of blk_queue_flushing(). Remove it. Signed-off-by: Tejun Heo <tj@xxxxxxxxxx Cc: Christoph Hellwig <hch@xxxxxx Acked-by: David S. Miller <davem@xxxxxxxxxxxxx --- drivers/ide/ide-io.c | 13 ------------- include/linux/blkdev.h | 1 - 2 files changed, 0 insertions(+), 14 deletions(-) diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index a381be8..999dac0 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c @@ -441,19 +441,6 @@ void do_ide_request(struct request_queue *q) struct request *rq = NULL; ide_startstop_t startstop; - /* - * drive is doing pre-flush, ordered write, post-flush sequence. even - * though that is 3 requests, it must be seen as a single transaction. - * we must not preempt this drive until that is complete - */ - if (blk_queue_flushing(q)) - /* - * small race where queue could get replugged during - * the 3-request flush cycle, just yank the plug since - * we want it to finish asap - */ - blk_remove_plug(q); - spin_unlock_irq(q- queue_lock); /* HLD do_request() callback might sleep, make sure its okay */ diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 2c54906..015375c 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -521,7 +521,6 @@ enum { #define blk_queue_nonrot(q) test_bit(QUEUE_FLAG_NONROT, &(q)- queue_flags) #define blk_queue_io_stat(q) test_bit(QUEUE_FLAG_IO_STAT, &(q)- queue_flags) #define blk_queue_add_random(q) test_bit(QUEUE_FLAG_ADD_RANDOM, &(q)- queue_flags) -#define blk_queue_flushing(q) ((q)- ordseq) #define blk_queue_stackable(q) test_bit(QUEUE_FLAG_STACKABLE, &(q)- queue_flags) #define blk_queue_discard(q) test_bit(QUEUE_FLAG_DISCARD, &(q)- queue_flags) -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at rel="nofollow" vger.kernel.org/majordomo-info.html vger.kernel.org/majordomo-info.html
Index