gfio: ensure all command opcode handlers are properly gdk thread protected
authorJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 08:23:27 +0000 (09:23 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 08:23:27 +0000 (09:23 +0100)
commit0050e5f2e5874c8b5983cd26dde2afeae2200e4f
treef04c67afb7eb0b822b61f1a5988d3e32daf5b8c6
parent19998dbcb6712ba5885c059428ac511d306890cf
gfio: ensure all command opcode handlers are properly gdk thread protected

Since we get this callback from our handling thread, we
need to use gdk_threads_enter() and gdk_threads_leave()
to ensure proper locking.

This fixes various crashes.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
gfio.c