]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - block/blk.h
blk-wbt: fix that 'rwb->wc' is always set to 1 in wbt_init()
[mirror_ubuntu-jammy-kernel.git] / block / blk.h
index 7d2a0ba7ed21da27662f712ebdc69905215814fc..aab72194d2266fbe75fa416dfd9106894df4ab32 100644 (file)
@@ -51,6 +51,8 @@ struct blk_flush_queue *blk_alloc_flush_queue(int node, int cmd_size,
 void blk_free_flush_queue(struct blk_flush_queue *q);
 
 void blk_freeze_queue(struct request_queue *q);
+void __blk_mq_unfreeze_queue(struct request_queue *q, bool force_atomic);
+void blk_queue_start_drain(struct request_queue *q);
 
 #define BIO_INLINE_VECS 4
 struct bio_vec *bvec_alloc(mempool_t *pool, unsigned short *nr_vecs,
@@ -182,6 +184,12 @@ bool blk_bio_list_merge(struct request_queue *q, struct list_head *list,
 void blk_account_io_start(struct request *req);
 void blk_account_io_done(struct request *req, u64 now);
 
+/*
+ * Plug flush limits
+ */
+#define BLK_MAX_REQUEST_COUNT  32
+#define BLK_PLUG_FLUSH_SIZE    (128 * 1024)
+
 /*
  * Internal elevator interface
  */