Re: [PATCH 2/2] scsi: ufs: Return a bsg request immediatley if eh-in-progress

From: Bart Van Assche
Date: Mon Nov 08 2021 - 12:32:14 EST


On 11/8/21 9:24 AM, Avri Altman wrote:
I am not sure. I would expect a retry / polling / other, if any, to
be done in user-space and not in the kernel. e.g. a common practice
in the code that send SG_IO or other ioctls is to retry on EBUSY. Not
sure that this is the case in ufs-utils though.
Shouldn't we aim to make sure that user space code does not have to use busy waiting?

Thanks,

Bart.