On 01/08/2018 12:23 PM, Christoph Hellwig wrote: > On Mon, Jan 08, 2018 at 11:51:56AM +0100, Hannes Reinecke wrote: >> The abort handler might be racing with command completion, so the >> task might already be NULL by the time the abort handler is called. > > But without taking dev_done_lock (or using cmpxchg) what prevents > use from still hitting this, although in a more narrow window? > Good point. Will be updating the patch. Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)