]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb4ccd298487bae1de08f6a2e92be41ae3f141c8b
tree14caffdac252bbebf68678b808e22ca13f7a3302
parent646610096a90ba1aee9276ed293b5f4f6d7082b2
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