]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm suspend: return -ERESTARTSYS instead of -EINTR
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 13 Aug 2024 10:38:51 +0000 (12:38 +0200)
committerMikulas Patocka <mpatocka@redhat.com>
Tue, 13 Aug 2024 11:50:45 +0000 (13:50 +0200)
commit1e1fd567d32fcf7544c6e09e0e5bc6c650da6e23
tree9eaf4d7ec312ab0b20500cf3670505de093c49fb
parent7c626ce4bae1ac14f60076d00eafe71af30450ba
dm suspend: return -ERESTARTSYS instead of -EINTR

This commit changes device mapper, so that it returns -ERESTARTSYS
instead of -EINTR when it is interrupted by a signal (so that the ioctl
can be restarted).

The manpage signal(7) says that the ioctl function should be restarted if
the signal was handled with SA_RESTART.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
drivers/md/dm.c