From: Bart Van Assche Date: Mon, 8 Dec 2014 15:46:34 +0000 (-0700) Subject: blk-mq: fix hang in bt_get() X-Git-Tag: omap-for-v3.20/drop-legacy-3517~92^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b32232073e80;p=pandora-kernel.git blk-mq: fix hang in bt_get() Avoid that if there are fewer hardware queues than CPU threads that bt_get() can hang. The symptoms of the hang were as follows: * All tags allocated for a particular hardware queue. * (nr_tags) pending commands for that hardware queue. * No pending commands for the software queues associated with that hardware queue. Signed-off-by: Jens Axboe --- Reading git-diff-tree failed