block: kill read-ahead if the submitting process is getting killed readpages-ahead-args
authorJens Axboe <axboe@kernel.dk>
Wed, 13 Jun 2018 22:54:51 +0000 (16:54 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jun 2018 01:01:09 +0000 (19:01 -0600)
commite54996d9354fe6276c2941f8cbe998e1a9d931d1
tree6ec979c4e790646da65538577c0bb473eebfa0b5
parent199529f8305103c5b35d503b625cad5d91d18646
block: kill read-ahead if the submitting process is getting killed

If we have tons of read-ahead coming in and the process is getting
killed, then it can take forever to kill said process since each
IO could take seconds on a loaded rotating drive.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c