Selaa lähdekoodia

mtip32xx: remove call to blk_queue_flush()

The driver calls it with 0 for flags, since it doesn't have a writeback
cache. Just remove the call, as it's a no-op right now.

Signed-off-by: Jens Axboe <axboe@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Jens Axboe 9 vuotta sitten
vanhempi
commit
17fe95f460
1 muutettua tiedostoa jossa 0 lisäystä ja 6 poistoa
  1. 0 6
      drivers/block/mtip32xx/mtip32xx.c

+ 0 - 6
drivers/block/mtip32xx/mtip32xx.c

@@ -4023,12 +4023,6 @@ skip_create_disk:
 	blk_queue_io_min(dd->queue, 4096);
 	blk_queue_io_min(dd->queue, 4096);
 	blk_queue_bounce_limit(dd->queue, dd->pdev->dma_mask);
 	blk_queue_bounce_limit(dd->queue, dd->pdev->dma_mask);
 
 
-	/*
-	 * write back cache is not supported in the device. FUA depends on
-	 * write back cache support, hence setting flush support to zero.
-	 */
-	blk_queue_flush(dd->queue, 0);
-
 	/* Signal trim support */
 	/* Signal trim support */
 	if (dd->trim_supp == true) {
 	if (dd->trim_supp == true) {
 		set_bit(QUEUE_FLAG_DISCARD, &dd->queue->queue_flags);
 		set_bit(QUEUE_FLAG_DISCARD, &dd->queue->queue_flags);