diff for duplicates of <20181122010034.GA20814@ming.t460p> diff --git a/a/1.txt b/N1/1.txt index 5d29a83..1560ad0 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -87,23 +87,3 @@ blk_sync_queue() supposes to drain the queued work, but it can be queued after blk_sync_queue() returns. Or maybe we can try the following patch? --- - -diff --git a/block/blk-mq.c b/block/blk-mq.c -index 0375c3bd410e..986c211ca74c 100644 ---- a/block/blk-mq.c -+++ b/block/blk-mq.c -@@ -1570,6 +1570,9 @@ static void blk_mq_run_work_fn(struct work_struct *work) - - hctx = container_of(work, struct blk_mq_hw_ctx, run_work.work); - -+ if (unlikely(blk_queue_dead(hctx->queue))) -+ return; -+ - /* - * If we are stopped, don't run the queue. - */ - - -Thanks, -Ming diff --git a/a/content_digest b/N1/content_digest index 515e999..3497077 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -104,26 +104,6 @@ "blk_sync_queue() supposes to drain the queued work, but it can be\n" "queued after blk_sync_queue() returns.\n" "\n" - "Or maybe we can try the following patch?\n" - "--\n" - "\n" - "diff --git a/block/blk-mq.c b/block/blk-mq.c\n" - "index 0375c3bd410e..986c211ca74c 100644\n" - "--- a/block/blk-mq.c\n" - "+++ b/block/blk-mq.c\n" - "@@ -1570,6 +1570,9 @@ static void blk_mq_run_work_fn(struct work_struct *work)\n" - " \n" - " \thctx = container_of(work, struct blk_mq_hw_ctx, run_work.work);\n" - " \n" - "+\tif (unlikely(blk_queue_dead(hctx->queue)))\n" - "+\t\treturn;\n" - "+\n" - " \t/*\n" - " \t * If we are stopped, don't run the queue.\n" - " \t */\n" - "\n" - "\n" - "Thanks,\n" - Ming + Or maybe we can try the following patch? -e0de6c2eddb986332eef956c80f02048b029ff17dc1ba5d190e2f9f0bfefe9ca +39db6775a555c4a981d23b469d2487d44ec5be95d5471f00b7b4db8d01bd7eb0
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.