block: add __blkdev_issue_discard
authorChristoph Hellwig <hch@lst.de>
Sat, 16 Apr 2016 18:55:28 +0000 (14:55 -0400)
committerJens Axboe <axboe@fb.com>
Mon, 2 May 2016 15:19:46 +0000 (09:19 -0600)
commit38f252553300ee1d3346a5273e95fe1dd60ca50a
treeddd79bcd6c509dc804374d250a38a0ebd5c3b7c1
parent9082e87bfbf83579b97e3bfc45d81f3e50da2177
block: add __blkdev_issue_discard

This is a version of blkdev_issue_discard which doesn't wait for
the I/O to complete, but instead allows the caller to submit
the final bio and/or chain it to others.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lin <ming.l@ssi.samsung.com>
Signed-off-by: Sagi Grimberg <sagig@grimberg.me>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-lib.c
include/linux/blkdev.h