Messages in this thread | | | Date | Thu, 14 Aug 2008 14:39:35 +0200 | From | Pierre Ossman <> | Subject | Re: can block drivers get non-fs requests? |
| |
On Thu, 14 Aug 2008 13:42:09 +0200 Jens Axboe <jens.axboe@oracle.com> wrote:
> > You should check in the driver whether the request type is supported. So > if you can only handle fs requests, you should do a check for > !blk_fs_request() after elv_next_request() and call > end_(de)queued_request() appropriately. >
So killing off the request with -EOPNOTSUPP is preferred over having a prepare function and stopping it there?
Rgds -- -- Pierre Ossman
Linux kernel, MMC maintainer http://www.kernel.org rdesktop, core developer http://www.rdesktop.org
WARNING: This correspondence is being monitored by the Swedish government. Make sure your server uses encryption for SMTP traffic and consider using PGP for end-to-end encryption. [unhandled content-type:application/pgp-signature] | |