diff options
author | Christoph Hellwig <hch@lst.de> | 2024-07-01 19:51:20 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-07-05 09:53:15 +0300 |
commit | bf86bcdb40123ee99669ee91b67e023669433a1a (patch) | |
tree | 96b195a2403a1d4a35028345b060aedaea0f7810 /scripts/generate_rust_analyzer.py | |
parent | 39722a2f2bcd82bdecc226711412d88b54fcb05b (diff) | |
download | linux-bf86bcdb40123ee99669ee91b67e023669433a1a.tar.xz |
blk-lib: check for kill signal in ioctl BLKZEROOUT
Zeroout can access a significant capacity and take longer than the user
expected. A user may change their mind about wanting to run that
command and attempt to kill the process and do something else with their
device. But since the task is uninterruptable, they have to wait for it
to finish, which could be many hours.
Add a new BLKDEV_ZERO_KILLABLE flag for blkdev_issue_zeroout that checks
for a fatal signal at each iteration so the user doesn't have to wait for
their regretted operation to complete naturally.
Heavily based on an earlier patch from Keith Busch.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20240701165219.1571322-11-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions