dm bufio: submit writes outside lock
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 10 Jul 2013 22:41:18 +0000 (23:41 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 10 Jul 2013 22:41:18 +0000 (23:41 +0100)
commit2480945cd44b50ba8b1646544eec2db21f064f12
treee9e3d5b75c4b1bdd83eaf7727016f607310c6574
parent43aeaa29573924df76f44eda2bbd94ca36e407b5
dm bufio: submit writes outside lock

This patch changes dm-bufio so that it submits write I/Os outside of the
lock. If the number of submitted buffers is greater than the number of
requests on the target queue, submit_bio blocks. We want to block outside
of the lock to improve latency of other threads that may need the lock.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-bufio.c