<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div><div><div>Hello Gurus,</div><div><br></div><div>Please disregard my earlier mail due to poor formatting </div><div>and readability.</div><div><br></div><div>I'm developing a block driver using the make_request </div><div>method, effectively bypassing existing scsi or request </div><div>stack in block layer. So that means im directly </div><div>working with bios. As prescribed in linux </div><div>documentation and from referring to similar </div><div>drivers in kernel, you close a session with a </div><div>bio with the bio_endio function.</div><div><br></div><div>I usually invoke bio_endio during successful </div><div>I/O completion, meaning with an error code </div><div>of zero. But there are cases that this is not </div><div>fulfilled or there are error cases. My question</div><div> is, what are the valid error codes that can be </div><div>used with it? My initial impression is that </div><div>other than zero as error code, bio_endio will </div><div>fail. I've read somewhere that -EBUSY is not </div><div>recognized, and I tried -EIO but my driver </div><div>crashed. I got a panic in some dio_xxx function </div><div>leading from bio_endio(bio,-EIO). I would </div><div>like to block subsequent bios sent to me after </div><div>reaching my queue depth and with no tags left, </div><div>and so I want to use bio_endio with an error </div><div>code.</div></div><div><br></div><div>What are those error codes, and will they work </div><div>for my intended function? Or is there a better </div><div>way aside from bio_endio? Thanks!</div><div><br></div></div><div><br></div><div><br></div><div><div style="font-size:75%;color:#575757">Sent from Samsung Mobile</div></div></body></html>