]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: avoid blocking AIO API methods
authorJason Dillaman <dillaman@redhat.com>
Wed, 8 Apr 2015 23:06:52 +0000 (19:06 -0400)
committerKen Dreyer <kdreyer@redhat.com>
Wed, 24 Jun 2015 16:41:21 +0000 (10:41 -0600)
commitc6d730072a2f147c2779c343d9930efd539f5387
treeaabd33c119ac41673c94cc9bfff27f43a1bb7682
parent5e7c60a59c6f2e91ea3c8c7b6c39d879d604ca89
librbd: avoid blocking AIO API methods

Enqueue all AIO API methods within the new librbd thread pool to
reduce the possibility of any blocking operations. To maintain
backwards compatibility with the legacy return codes of the API's
AIO methods, it's still possible to block attempting to acquire
the snap_lock.

Fixes: #11056
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 3a7b5e30efdb21aa1a0aeb68a5d02a1ac2a5faf3)
(cherry picked from commit cf6e1f50ea7b5c2fd6298be77c06ed4765d66611)
src/librbd/librbd.cc