diff options
author | Johann Latocha | 2011-06-30 01:12:38 +0200 |
---|---|---|
committer | Johann Latocha | 2011-06-30 01:12:38 +0200 |
commit | 5b370f705817ed17e83cd6e6f9aa26c9f48a49c6 (patch) | |
tree | 9ba69bfebf44425d431f5d9cf294ef190778df0b /kernel | |
parent | Working with kernel 2.6.34 (diff) | |
download | dnbd2-5b370f705817ed17e83cd6e6f9aa26c9f48a49c6.tar.gz dnbd2-5b370f705817ed17e83cd6e6f9aa26c9f48a49c6.tar.xz dnbd2-5b370f705817ed17e83cd6e6f9aa26c9f48a49c6.zip |
Working with kernel 2.6.36
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/core.c b/kernel/core.c index 9180e40..96cd7b0 100644 --- a/kernel/core.c +++ b/kernel/core.c @@ -28,7 +28,11 @@ void dnbd2_request(request_queue_t *q) while ((req = blk_peek_request(q)) != NULL) { /* Discard invalid block requests. */ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36) + if (req->cmd_type != REQ_TYPE_FS) { +#else if (!blk_fs_request(req)) { +#endif __blk_end_request_cur(req, -EIO); continue; } |