block: don't allow splitting of a REQ_NOWAIT bio
[platform/kernel/linux-rpi.git] / block / blk.h
index 6c3c00a..aab7219 100644 (file)
@@ -185,6 +185,12 @@ 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
  */
 #define ELV_ON_HASH(rq) ((rq)->rq_flags & RQF_HASHED)