]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Allow user to kill fstrim process
authorLukas Czerner <lczerner@redhat.com>
Thu, 27 Apr 2017 15:59:36 +0000 (08:59 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 27 Apr 2017 17:45:34 +0000 (10:45 -0700)
commit6b553fd151d9def1ccc837b39ff8ea49f21b91e4
tree1fdb696b5a0dc6af0882245eeb1c1f61945b40d4
parent3a7ba16b32f7c033e587fe32c9e6d0e62303b7f6
xfs: Allow user to kill fstrim process

fstrim can take really long time on big, slow device or on file system
with a lots of allocation groups. Currently there is no way for the user
to cancell the operation. This patch makes it possible for the user to
kill fstrim pocess by adding the check for fatal_signal_pending() in
xfs_trim_extents().

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_discard.c