blk: clean up plug
authorShaohua Li <shli@fb.com>
Fri, 8 May 2015 17:51:28 +0000 (10:51 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 8 May 2015 20:17:14 +0000 (14:17 -0600)
commitdd6cf3e18decb4895503db1752bb5500c4dd588d
tree14caffdac252bbebf68678b808e22ca13f7a3302
parent9dc6c806b3c4812619e305685b3c86835bf784ab
blk: clean up plug

Current code looks like inner plug gets flushed with a
blk_finish_plug(). Actually it's a nop. All requests/callbacks are added
to current->plug, while only outmost plug is assigned to current->plug.
So inner plug always has empty request/callback list, which makes
blk_flush_plug_list() a nop. This tries to make the code more clear.

Signed-off-by: Shaohua Li <shli@fb.com>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-core.c