Messages in this thread | | | Date | Mon, 23 Nov 2020 20:17:23 +0100 | From | David Sterba <> | Subject | Re: [PATCH v2] btrfs: return EAGAIN when receiving a pending signal in the defrag loops |
| |
On Wed, Nov 18, 2020 at 12:02:36PM +0800, xiakaixu1987@gmail.com wrote: > From: Kaixu Xia <kaixuxia@tencent.com> > > The variable ret is overwritten by the following variable defrag_count. > Actually the code should return EAGAIN when receiving a pending signal > in the defrag loops.
This lacks explanation why is EAGAIN supposed to be the right return value. This is about semantics of the FITRIM ioctl, changing that would affect userspace applications.
| |