Re: struct request and rq->buffer question

2008-08-29 Thread Thomas Petazzoni
Le Fri, 29 Aug 2008 10:51:10 +0200, Thomas Petazzoni <[EMAIL PROTECTED]> a écrit : > So, who is doing the bounce buffering of the bio page when it's stored > in ZONE_HIGHMEM ? Is it safe for a block driver to blindly use > rq->buffer without knowing if the bio's page is in HIGHMEM or not ? After

struct request and rq->buffer question

2008-08-29 Thread Thomas Petazzoni
Hi, In Linux Device Drivers, chapter 16 about Block Devices, page 12-13, a simple block device request() method is presented: static void sbull_request(request_queue_t *q) { struct request *req; while ((req = elv_next_request(q)) != NULL) { struct sbull_dev *dev = req->rq_disk->pr