block: Ensure we only enable integrity metadata for reads and writes
authorMartin K. Petersen <martin.petersen@oracle.com>
Wed, 9 Apr 2014 02:59:31 +0000 (22:59 -0400)
committerJens Axboe <axboe@fb.com>
Wed, 9 Apr 2014 14:00:06 +0000 (08:00 -0600)
commite69f18f06b97ed29645d020500222bfcec2b42b2
tree1541e97cc116a058f42302aed325dc71fb7dfd91
parent0bc69973066d62f70ce60bd6762b5cb75a699159
block: Ensure we only enable integrity metadata for reads and writes

We'd occasionally attempt to generate protection information for flushes
and other requests with a zero payload. Make sure we only attempt to
enable integrity for reads and writes.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/bio-integrity.c