It turns out that whilst on average I can write data to the SD card fast enough during the I2c down time, when the FatFS code creates new sectors / clusters the write operation takes too long

. I've been trying to think of a way of getting around this by having one thread which performs the SD card writing using a IOQueue, and somehow having my I2C thread pause the SD thread whilst it uses I2C1, but I can't see any way in Chibios to pause a thread (from outside that thread), only to wake one - is there a way to do that?
For reference, I'm running my I2c reading loop at 1ms intervals. 9/10 times I2C1 just reads one sensor which takes 250us. 1/10 times it reads 2 sensors which takes ~ 500us. My average write time for 26byte data packet is about 170us, so I should be well within my required data rate if I can think up a clever way of pausing FatFS operations! I've tried playing with the FAT block size but I still have the problem.
Any help on this would be much appreciated!