Driver porting: a simple block driver
Driver porting: a simple block driver
Posted Mar 14, 2003 20:05 UTC (Fri) by axboe (subscriber, #904)Parent article: Driver porting: a simple block driver
Oh, wrt request flags again. The same point applies (even more so) to checking the data direction of a request. You want to use rq_data_dir(rq) (which returns READ or WRITE), not look at the direction bit in the flags.