Files
kernel_amazon_mt8127-common/drivers
Hannes Reinecke 1ba4fc4b07 sd: get disk reference in sd_check_events()
commit eb72d0bb84eee5d0dc3044fd17b75e7101dabb57 upstream.

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 <hare@suse.de>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Jinpu Wang <jinpu.wang@profitbricks.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2017-06-20 14:04:23 +02:00
..
2017-06-08 00:46:53 +02:00
2017-06-08 00:46:57 +02:00
2017-06-08 00:47:10 +02:00
2017-02-10 11:03:35 +01:00
2017-06-08 00:47:05 +02:00
2017-06-20 14:04:21 +02:00
2017-06-08 00:47:05 +02:00