From: Shaohua Li Date: Fri, 8 May 2015 17:51:33 +0000 (-0700) Subject: blk-mq: make plug work for mutiple disks and queues X-Git-Tag: omap-for-v4.2/fixes-rc1^2~120^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b3f341f098d60da2970758db6a05bd851eb6b39;p=pandora-kernel.git blk-mq: make plug work for mutiple disks and queues Last patch makes plug work for multiple queue case. However it only works for single disk case, because it assumes only one request in the plug list. If a task is accessing multiple disks, eg MD/DM, the assumption is wrong. Let blk_attempt_plug_merge() record request from the same queue. V2: use NULL parameter in !mq case. Fix a bug. Add comments in blk_attempt_plug_merge to make it less (hopefully) confusion. Cc: Jens Axboe Cc: Christoph Hellwig Signed-off-by: Shaohua Li Signed-off-by: Jens Axboe --- Reading git-diff-tree failed