summaryrefslogtreecommitdiffstats
path: root/sound/drivers/dummy.c
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2012-12-26 10:43:57 -0600
committerAlex Elder <elder@inktank.com>2012-12-27 20:27:04 -0600
commit122070a2ffc91f87fe8e8493eb0ac61986c5557c (patch)
treeb19b8bced463ffdb54f3b5d3b2c287bd81084582 /sound/drivers/dummy.c
parente6d50f67a6b1a6252a616e6e629473b5c4277218 (diff)
downloadblackbird-op-linux-122070a2ffc91f87fe8e8493eb0ac61986c5557c.tar.gz
blackbird-op-linux-122070a2ffc91f87fe8e8493eb0ac61986c5557c.zip
libceph: WARN, don't BUG on unexpected connection states
A number of assertions in the ceph messenger are implemented with BUG_ON(), killing the system if connection's state doesn't match what's expected. At this point our state model is (evidently) not well understood enough for these assertions to trigger a BUG(). Convert all BUG_ON(con->state...) calls to be WARN_ON(con->state...) so we learn about these issues without killing the machine. We now recognize that a connection fault can occur due to a socket closure at any time, regardless of the state of the connection. So there is really nothing we can assert about the state of the connection at that point so eliminate that assertion. Reported-by: Ugis <ugis22@gmail.com> Tested-by: Ugis <ugis22@gmail.com> Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'sound/drivers/dummy.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud