Daniel Verkamp 2138676573 bdev: defer completions from within submit_request
If a blockdev module calls spdk_bdev_io_complete() within its
submit_request function, and the user's completion callback issues a new
I/O, it is possible to cause infinite recursion, consuming all available
stack space.

To avoid this, track whether a bdev_io is being processed by
submit_request, and if io_complete() is called in this case, defer the
completion via an event.

Change-Id: I6ccdb8ed4ee0d5738e6c9840d35431de52bd5fa2
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-01-13 12:37:54 -07:00
..
2017-01-05 11:57:18 -07:00
2017-01-05 11:57:18 -07:00
2016-09-15 15:47:56 -07:00
2016-11-16 10:30:04 -07:00
2016-12-12 10:13:16 -07:00
2016-10-05 11:53:24 -07:00
2016-12-15 13:01:08 -07:00
2016-10-03 08:41:37 -07:00
2016-06-22 15:45:50 -07:00