summaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-04-27 09:59:30 -0500
committerSage Weil <sage@inktank.com>2013-05-01 21:19:59 -0700
commit0d8189e175380c029a309f05f44e82bacf1c0404 (patch)
tree2d876fa6d307fd44559545304bc1bcaf87c87965 /net/switchdev/switchdev.c
parent332bb12db9459d52dfcdb278e7607351d2eff6ab (diff)
rbd: don't clean up watch in device release function
Currently, a watch on an rbd device header object gets torn down when its final Linux device reference gets dropped. Instead, tear it down when removing the device. If an error occurs cleaning up the watch event when unmapping, abort the unmap request. All images (including parents) still get watch requests set up, so tear these down also, in rbd_dev_remove_parent(). For now, ignore any errors that occur in this case. Get rid of local variable "rc" in rbd_remove(); use "ret" instead (they both somehow ended up defined in the function and only one is needed). Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions