X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=drivers%2Fmd%2Ffaulty.c;h=4ebd0f2a75ecee907c06b76c659ddc1e9e700841;hb=b643b0fdbc59cf6bbb086974b29d2571e9e9f646;hp=a7a5ab5543389b5171ca770dc4dad7f8fed526d0;hpb=ed03f430cdc8c802652467e9097606fedc2c7abc;p=linux-2.6-omap-h63xx.git diff --git a/drivers/md/faulty.c b/drivers/md/faulty.c index a7a5ab55433..4ebd0f2a75e 100644 --- a/drivers/md/faulty.c +++ b/drivers/md/faulty.c @@ -173,7 +173,7 @@ static int make_request(request_queue_t *q, struct bio *bio) conf_t *conf = (conf_t*)mddev->private; int failit = 0; - if (bio->bi_rw & 1) { + if (bio_data_dir(bio) == WRITE) { /* write request */ if (atomic_read(&conf->counters[WriteAll])) { /* special case - don't decrement, don't generic_make_request,