summaryrefslogtreecommitdiffstats
path: root/contrib/diff/lib
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>2013-04-10 22:12:21 +0000
committerken <ken@FreeBSD.org>2013-04-10 22:12:21 +0000
commit2e36122e63be842feeab6d01ac190f987e2bc2d2 (patch)
tree2ff6aa8c5ed14b76f5ccdca3474520aa40014559 /contrib/diff/lib
parent695c50ff24460c5a7a186dd0adf77c976f32ec06 (diff)
downloadFreeBSD-src-2e36122e63be842feeab6d01ac190f987e2bc2d2.zip
FreeBSD-src-2e36122e63be842feeab6d01ac190f987e2bc2d2.tar.gz
Add a callback to the ada(4) driver so that it knows when GEOM has released
references to it. This is the functional equivalent to change r237518, which added this functionality to the cd(4) and da(4) drivers. This fix prevents a panic caused by GEOM calling adaopen() while the device is going away. We now keep the device around until GEOM has finished cleaning up its state. ata_da.c: In adaregister(), add a d_gone callback to the GEOM disk structure registered for the ada driver. Increment the peripheral reference count for GEOM. Add a new callback, adadiskgonecb(), that GEOM calls when it is done with its resources. This callback releases the reference acquired in adaregister(). Submitted by: Po-Li Soong Sponsored by: Spectra Logic MFC After: 5 days
Diffstat (limited to 'contrib/diff/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud