io-wq: cancel work if we fail getting a mm reference
authorJens Axboe <axboe@kernel.dk>
Wed, 15 Jan 2020 05:06:11 +0000 (22:06 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Jan 2020 05:06:11 +0000 (22:06 -0700)
commite0bbb3461ae000baec13e8ec5b5063202df228df
tree0b3f8f9a36b0bbe0fe4b286485e5f43af6fadc8f
parent74566df3a71c1b92da608868cca787557d8be7b2
io-wq: cancel work if we fail getting a mm reference

If we require mm and user context, mark the request for cancellation
if we fail to acquire the desired mm.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c