From: Jens Axboe Date: Sat, 5 Apr 2014 03:34:48 +0000 (-0600) Subject: blk-mq: fix potential stall during CPU unplug with IO pending X-Git-Tag: v3.15-rc1~35^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bccb5f7c8bdfe460d95f986c6edf2e75d8052897;p=pandora-kernel.git blk-mq: fix potential stall during CPU unplug with IO pending When a CPU is unplugged, we move the blk_mq_ctx request entries to the current queue. The current code forgets to remap the blk_mq_hw_ctx before marking the software context pending, which breaks if old-cpu and new-cpu don't map to the same hardware queue. Additionally, if we mark entries as pending in the new hardware queue, then make sure we schedule it for running. Otherwise request could be sitting there until someone else queues IO for that hardware queue. Signed-off-by: Jens Axboe --- Reading git-diff-tree failed