aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-div.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2023-05-02 10:42:31 +0800
committerJens Axboe <[email protected]>2023-05-03 09:39:18 -0600
commitc0b79b0ff53be5b05be98e3caaa6a39de1fe9520 (patch)
treee07c9da9af03891b797674f7630167ad5f987c9d /lib/mpi/mpi-div.c
parent3899d94e3831ee07ea6821c032dc297aec80586a (diff)
ublk: add timeout handler
Add timeout handler, so that we can provide forward progress guarantee for unprivileged ublk, which can't be trusted. One thing is that sync() calls sync_bdevs(wait) for all block devices after running sync_bdevs(no_wait), and if one device can't move on, the sync() won't return any more. Add timeout for unprivileged ublk to avoid such affect for other users which call sync() syscall. Meantime clear UBLK_F_USER_RECOVERY_REISSUE for unprivileged ublk since that feature may cause IO hang too. Fixes: 4093cb5a0634 ("ublk_drv: add mechanism for supporting unprivileged ublk device") Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-div.c')
0 files changed, 0 insertions, 0 deletions