aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBorislav Petkov <petkovbb@gmail.com>2009-04-30 18:24:34 +0200
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-04-30 18:24:34 +0200
commit96c16743973e8c1a7b9c655d10b7973408d6d1dd (patch)
tree965c9915d06762fa68cd033b71be2ac851722f0b /include
parentb930f964cfe65941c6b1ba61efedfe49da3f6353 (diff)
downloadmrst-s0i3-test-96c16743973e8c1a7b9c655d10b7973408d6d1dd.tar.gz
mrst-s0i3-test-96c16743973e8c1a7b9c655d10b7973408d6d1dd.tar.xz
mrst-s0i3-test-96c16743973e8c1a7b9c655d10b7973408d6d1dd.zip
ide-cd: fix REQ_QUIET tests in cdrom_decode_status
Original patch (dfa4411cc3a690011cab90e9a536938795366cf9) was buggy. This is a more proper fix which introduces blk_rq_quiet() macro alleviating the need for dumb, too short caching variables. Thanks to Helge Deller and Bart for debugging this. Signed-off-by: Borislav Petkov <petkovbb@gmail.com> Cc: Jens Axboe <jens.axboe@oracle.com> Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com> Reported-and-tested-by: Helge Deller <deller@gmx.de> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/blkdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index ba54c834a59..6f841fb1be3 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -598,6 +598,7 @@ enum {
blk_failfast_transport(rq) || \
blk_failfast_driver(rq))
#define blk_rq_started(rq) ((rq)->cmd_flags & REQ_STARTED)
+#define blk_rq_quiet(rq) ((rq)->cmd_flags & REQ_QUIET)
#define blk_account_rq(rq) (blk_rq_started(rq) && (blk_fs_request(rq) || blk_discard_rq(rq)))