diff options
| author | Ming Lei <[email protected]> | 2019-04-26 10:45:20 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2019-05-01 14:38:47 +0000 |
| commit | 60a27b906d1a372474669c914c10d6c993858a4a (patch) | |
| tree | c8b9d074ea3eb1a600c131e16601ea2d7cda9c5c /drivers/fpga/fpga-bridge.c | |
| parent | io_uring: drop req submit reference always in async punt (diff) | |
| download | kernel-60a27b906d1a372474669c914c10d6c993858a4a.tar.gz kernel-60a27b906d1a372474669c914c10d6c993858a4a.zip | |
block: fix handling for BIO_NO_PAGE_REF
Commit 399254aaf489211 ("block: add BIO_NO_PAGE_REF flag") introduces
BIO_NO_PAGE_REF, and once this flag is set for one bio, all pages
in the bio won't be get/put during IO.
However, if one bio is submitted via __blkdev_direct_IO_simple(),
even though BIO_NO_PAGE_REF is set, pages still may be put.
Fixes this issue by avoiding to put pages if BIO_NO_PAGE_REF is
set.
Fixes: 399254aaf489211 ("block: add BIO_NO_PAGE_REF flag")
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
