]> git.baikalelectronics.ru Git - kernel.git/commit
block: simplify force plug flush code a little bit
authorShaohua Li <shaohua.li@intel.com>
Wed, 24 Aug 2011 14:04:34 +0000 (16:04 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Wed, 24 Aug 2011 14:04:34 +0000 (16:04 +0200)
commit87b55de1d2173cc33523dfe58060077503ee8d31
treef99669db0cd846baac7bb468e2cc14324e8950a3
parent86789f7bd86fc76e0f16cdf796e488791de0186d
block: simplify force plug flush code a little bit

Cleaning up the code a little bit. attempt_plug_merge() traverses the plug
list anyway, we can do the request counting there, so stack size is reduced
a little bit.
The motivation here is I suspect if we should count the requests for each
queue (task could handle multiple disks in the meantime), but my test doesn't
show it's worthy doing. If somebody proves we should do it, below change
will make that more easier.

Signed-off-by: Shaohua Li <shli@kernel.org>
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-core.c
include/linux/blkdev.h