Remove unused q element from struct sop_request
Move test for empty bio list outside loop
Change permissions to be sensible