Re: [PATCH] sd: get disk reference in sd_check_events()

2016-05-19 Thread Martin K. Petersen
> "Ewan" == Ewan D Milne writes: Ewan> Reviewed-by: Ewan D. Milne Applied to 4.7/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo in

Re: [PATCH] sd: get disk reference in sd_check_events()

2016-05-17 Thread Bart Van Assche
On 04/25/2016 11:06 PM, Hannes Reinecke wrote: sd_check_events() is called asynchronously, and might race with device removal. So always take a disk reference when processing the event to avoid the device being removed while the event is processed. Reviewed-by: Bart Van Assche -- To unsubscri

Re: [PATCH] sd: get disk reference in sd_check_events()

2016-05-17 Thread Ewan D. Milne
On Tue, 2016-04-26 at 08:06 +0200, Hannes Reinecke wrote: > sd_check_events() is called asynchronously, and might race > with device removal. So always take a disk reference when > processing the event to avoid the device being removed while > the event is processed. > > Signed-off-by: Hannes Rein

[PATCH] sd: get disk reference in sd_check_events()

2016-04-25 Thread Hannes Reinecke
sd_check_events() is called asynchronously, and might race with device removal. So always take a disk reference when processing the event to avoid the device being removed while the event is processed. Signed-off-by: Hannes Reinecke --- drivers/scsi/sd.c | 9 +++-- 1 file changed, 7 insertio