|
@@ -871,6 +871,14 @@ static inline void blk_flush_plug(struct task_struct *tsk)
|
|
{
|
|
{
|
|
struct blk_plug *plug = tsk->plug;
|
|
struct blk_plug *plug = tsk->plug;
|
|
|
|
|
|
|
|
+ if (plug)
|
|
|
|
+ blk_flush_plug_list(plug, false);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static inline void blk_schedule_flush_plug(struct task_struct *tsk)
|
|
|
|
+{
|
|
|
|
+ struct blk_plug *plug = tsk->plug;
|
|
|
|
+
|
|
if (plug)
|
|
if (plug)
|
|
blk_flush_plug_list(plug, true);
|
|
blk_flush_plug_list(plug, true);
|
|
}
|
|
}
|
|
@@ -1317,6 +1325,11 @@ static inline void blk_flush_plug(struct task_struct *task)
|
|
{
|
|
{
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline void blk_schedule_flush_plug(struct task_struct *task)
|
|
|
|
+{
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
static inline bool blk_needs_flush_plug(struct task_struct *tsk)
|
|
static inline bool blk_needs_flush_plug(struct task_struct *tsk)
|
|
{
|
|
{
|
|
return false;
|
|
return false;
|