Skip to content

Commit 0da2f50

Browse files
htejunJens Axboe
authored andcommitted
ide: remove unnecessary blk_queue_flushing() test in do_ide_request()
Unplugging from a request function doesn't really help much (it's already in the request_fn) and soon block layer will be updated to mix barrier sequence with other commands, so there's 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@kernel.org> Cc: Christoph Hellwig <hch@lst.de> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
1 parent 76be97c commit 0da2f50

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

‎drivers/ide/ide-io.c‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -441,19 +441,6 @@ void do_ide_request(struct request_queue *q)
441441
struct request *rq = NULL;
442442
ide_startstop_t startstop;
443443

444-
/*
445-
* drive is doing pre-flush, ordered write, post-flush sequence. even
446-
* though that is 3 requests, it must be seen as a single transaction.
447-
* we must not preempt this drive until that is complete
448-
*/
449-
if (blk_queue_flushing(q))
450-
/*
451-
* small race where queue could get replugged during
452-
* the 3-request flush cycle, just yank the plug since
453-
* we want it to finish asap
454-
*/
455-
blk_remove_plug(q);
456-
457444
spin_unlock_irq(q->queue_lock);
458445

459446
/* HLD do_request() callback might sleep, make sure it's okay */

‎include/linux/blkdev.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,6 @@ enum {
521521
#define blk_queue_nonrot(q) test_bit(QUEUE_FLAG_NONROT, &(q)->queue_flags)
522522
#define blk_queue_io_stat(q) test_bit(QUEUE_FLAG_IO_STAT, &(q)->queue_flags)
523523
#define blk_queue_add_random(q) test_bit(QUEUE_FLAG_ADD_RANDOM, &(q)->queue_flags)
524-
#define blk_queue_flushing(q) ((q)->ordseq)
525524
#define blk_queue_stackable(q) \
526525
test_bit(QUEUE_FLAG_STACKABLE, &(q)->queue_flags)
527526
#define blk_queue_discard(q) test_bit(QUEUE_FLAG_DISCARD, &(q)->queue_flags)

0 commit comments

Comments
 (0)