X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=blobdiff_plain;f=src%2Fpatches%2Fsuse-2.6.27.31%2Fpatches.fixes%2Fblock-fix-blk_start_queueing;fp=src%2Fpatches%2Fsuse-2.6.27.31%2Fpatches.fixes%2Fblock-fix-blk_start_queueing;h=e515e58539d16c2598efbe5c67cfa61f280b2c9b;hp=0000000000000000000000000000000000000000;hb=2cb7cef9f877c88c82c959e2944ff02a12d068fa;hpb=836f873377e58243cc856caa0586954efff79185 diff --git a/src/patches/suse-2.6.27.31/patches.fixes/block-fix-blk_start_queueing b/src/patches/suse-2.6.27.31/patches.fixes/block-fix-blk_start_queueing new file mode 100644 index 000000000..e515e5853 --- /dev/null +++ b/src/patches/suse-2.6.27.31/patches.fixes/block-fix-blk_start_queueing @@ -0,0 +1,34 @@ +Subject: block: Fix blk_start_queueing() to not kick a stopped queue +From: Elias Oltmanns +Date: Thu Oct 9 08:56:20 2008 +0200: +Git: 336c3d8ce771608815b65bcfa27a17a83b297328 +References: bnc#464155 + +blk_start_queueing() should act like the generic queue unplugging +and kicking and ignore a stopped queue. Such a queue may not be +run until after a call to blk_start_queue(). + +Signed-off-by: Elias Oltmanns +Signed-off-by: Jens Axboe +Signed-off-by: Hannes Reinecke + +--- + block/blk-core.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +--- a/block/blk-core.c ++++ b/block/blk-core.c +@@ -905,9 +905,11 @@ EXPORT_SYMBOL(blk_get_request); + */ + void blk_start_queueing(struct request_queue *q) + { +- if (!blk_queue_plugged(q)) ++ if (!blk_queue_plugged(q)) { ++ if (unlikely(blk_queue_stopped(q))) ++ return; + q->request_fn(q); +- else ++ } else + __generic_unplug_device(q); + } + EXPORT_SYMBOL(blk_start_queueing);