summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2016-04-26 08:06:58 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-12 06:37:26 +0100
commitea240cfed99bda8fc1774801cb9da355e66dc7e1 (patch)
tree02ffb7321678f1f21983d7c89967dc5aa0f66def /kernel
parent33950b56d2c20d10e85a0ab339e5368e8d029a2b (diff)
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions