aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/elevator.c8
-rw-r--r--drivers/block/ll_rw_blk.c2
-rw-r--r--include/linux/blkdev.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/block/elevator.c b/drivers/block/elevator.c
index 272d93946621..cf9bedbb761b 100644
--- a/drivers/block/elevator.c
+++ b/drivers/block/elevator.c
@@ -671,14 +671,14 @@ static void elevator_switch(request_queue_t *q, struct elevator_type *new_e)
671 */ 671 */
672 spin_lock_irq(q->queue_lock); 672 spin_lock_irq(q->queue_lock);
673 673
674 set_bit(QUEUE_FLAG_BYPASS, &q->queue_flags); 674 set_bit(QUEUE_FLAG_ELVSWITCH, &q->queue_flags);
675 675
676 while (q->elevator->ops->elevator_dispatch_fn(q, 1)) 676 while (q->elevator->ops->elevator_dispatch_fn(q, 1))
677 ; 677 ;
678 678
679 while (q->rq.elvpriv) { 679 while (q->rq.elvpriv) {
680 spin_unlock_irq(q->queue_lock); 680 spin_unlock_irq(q->queue_lock);
681 msleep(100); 681 msleep(10);
682 spin_lock_irq(q->queue_lock); 682 spin_lock_irq(q->queue_lock);
683 } 683 }
684 684
@@ -703,7 +703,7 @@ static void elevator_switch(request_queue_t *q, struct elevator_type *new_e)
703 * finally exit old elevator and turn off BYPASS. 703 * finally exit old elevator and turn off BYPASS.
704 */ 704 */
705 elevator_exit(old_elevator); 705 elevator_exit(old_elevator);
706 clear_bit(QUEUE_FLAG_BYPASS, &q->queue_flags); 706 clear_bit(QUEUE_FLAG_ELVSWITCH, &q->queue_flags);
707 return; 707 return;
708 708
709fail_register: 709fail_register:
@@ -716,7 +716,7 @@ fail_register:
716fail: 716fail:
717 q->elevator = old_elevator; 717 q->elevator = old_elevator;
718 elv_register_queue(q); 718 elv_register_queue(q);
719 clear_bit(QUEUE_FLAG_BYPASS, &q->queue_flags); 719 clear_bit(QUEUE_FLAG_ELVSWITCH, &q->queue_flags);
720 kfree(e); 720 kfree(e);
721error: 721error:
722 elevator_put(new_e); 722 elevator_put(new_e);
diff --git a/drivers/block/ll_rw_blk.c b/drivers/block/ll_rw_blk.c
index f7c9931cb380..fc12d019b19d 100644
--- a/drivers/block/ll_rw_blk.c
+++ b/drivers/block/ll_rw_blk.c
@@ -1940,7 +1940,7 @@ get_rq:
1940 if (rl->count[rw] >= queue_congestion_on_threshold(q)) 1940 if (rl->count[rw] >= queue_congestion_on_threshold(q))
1941 set_queue_congested(q, rw); 1941 set_queue_congested(q, rw);
1942 1942
1943 priv = !test_bit(QUEUE_FLAG_BYPASS, &q->queue_flags); 1943 priv = !test_bit(QUEUE_FLAG_ELVSWITCH, &q->queue_flags);
1944 if (priv) 1944 if (priv)
1945 rl->elvpriv++; 1945 rl->elvpriv++;
1946 1946
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 6186d5e2110f..7d9d14d6d8f9 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -442,7 +442,7 @@ enum {
442#define QUEUE_FLAG_DEAD 5 /* queue being torn down */ 442#define QUEUE_FLAG_DEAD 5 /* queue being torn down */
443#define QUEUE_FLAG_REENTER 6 /* Re-entrancy avoidance */ 443#define QUEUE_FLAG_REENTER 6 /* Re-entrancy avoidance */
444#define QUEUE_FLAG_PLUGGED 7 /* queue is plugged */ 444#define QUEUE_FLAG_PLUGGED 7 /* queue is plugged */
445#define QUEUE_FLAG_BYPASS 8 /* don't use elevator, just do FIFO */ 445#define QUEUE_FLAG_ELVSWITCH 8 /* don't use elevator, just do FIFO */
446#define QUEUE_FLAG_FLUSH 9 /* doing barrier flush sequence */ 446#define QUEUE_FLAG_FLUSH 9 /* doing barrier flush sequence */
447 447
448#define blk_queue_plugged(q) test_bit(QUEUE_FLAG_PLUGGED, &(q)->queue_flags) 448#define blk_queue_plugged(q) test_bit(QUEUE_FLAG_PLUGGED, &(q)->queue_flags)