aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2016-04-26 08:06:58 +0200
committerMister Oyster <oysterized@gmail.com>2017-07-04 11:51:35 +0200
commit2b338459a70cfec522299e3c5e0e59f60dbbd9be (patch)
tree5fc10a5ac58df130a5fa76e7ca723b0534f2b972 /samples
parentd65812f74faca251864d21c513b09a3f9ab92dad (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: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions