On Fri, 2017-05-12 at 15:15 +0200, Martin Wilck wrote: > Modification of the access_state field in struct scsi_device > in alua_rtpg() may race with alua_bus_detach(). Avoid > the scsi_device struct to be freed while it's being processed > in the alua code by taking a reference. Hello Martin, The approach of this patch seems weird to me. I don't think that it is a good idea to let any ALUA work continue while alua_bus_detach() is in progress. Have you considered to stop the ALUA work from inside alua_bus_detach() by using cancel_work_sync()? Bart.