Not an XFS expert, but patch to handle ^C is been discussed on the block layer mailing list which includes discard operations. [1] This solution seems specific to one file system, which will lead to code repetition for all the file systems which are in question. How about we come up with the generic solution in the block-layer so it can be reused for all the file systems ? (fyi, I'm not aware of any drawbacks of handling ^C it in the block layer and would like to learn if any). [1] https://patchwork.kernel.org/patch/11234607/ -Chaitanya On 11/27/2019 10:21 PM, Pavel Reichl wrote: > Some users are not happy about the BLKDISCARD taking too long and at the same > time not being informed about that - so they think that the command actually > hung. > > This commit changes code so that progress reporting is possible and also typing > the ^C will cancel the ongoing BLKDISCARD. > > Signed-off-by: Pavel Reichl<preichl@xxxxxxxxxx> > ---