]> git.baikalelectronics.ru Git - kernel.git/commit
mm: use SWP_SYNCHRONOUS_IO more intelligently
authorChristoph Hellwig <hch@lst.de>
Thu, 24 Sep 2020 06:51:37 +0000 (08:51 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Sep 2020 19:43:39 +0000 (13:43 -0600)
commitf7b9da588e1dd66a35279a7ab185aa15f1d7965a
tree664bad791aaeda55fbd96229a0977943dc36fb5a
parent114ade0ed79edbde5fb831fce340228371382507
mm: use SWP_SYNCHRONOUS_IO more intelligently

There is no point in trying to call bdev_read_page if SWP_SYNCHRONOUS_IO
is not set, as the device won't support it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/page_io.c