]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - block/blk-core.c
block: trace all devices plug operation
[karo-tx-linux.git] / block / blk-core.c
index 93a18d1d3da8e43d79b4450e30211ecb59f14b2f..91037f74668e341587b95385977035f18fb39f4f 100644 (file)
@@ -1549,11 +1549,9 @@ get_rq:
        if (plug) {
                /*
                 * If this is the first request added after a plug, fire
-                * of a plug trace. If others have been added before, check
-                * if we have multiple devices in this plug. If so, make a
-                * note to sort the list before dispatch.
+                * of a plug trace.
                 */
-               if (list_empty(&plug->list))
+               if (!request_count)
                        trace_block_plug(q);
                else {
                        if (request_count >= BLK_MAX_REQUEST_COUNT) {