Commit e7cbbf1bf17e3c706f874e867f7b744e1c86fed9

Authored by Boaz Harrosh
Committed by Jens Axboe
1 parent 1cd96c242a

bsg: Remove bogus check against request_queue->max_sectors

bsg submits REQ_TYPE_BLOCK_PC so the right check is max_hw_sectors.
But I've removed this check because right after, bsg proceeds with
calling blk_rq_map_user() which does all the right checks.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

Showing 1 changed file with 0 additions and 3 deletions Side-by-side Diff

... ... @@ -218,9 +218,6 @@
218 218  
219 219 if (hdr->guard != 'Q')
220 220 return -EINVAL;
221   - if (hdr->dout_xfer_len > (q->max_sectors << 9) ||
222   - hdr->din_xfer_len > (q->max_sectors << 9))
223   - return -EIO;
224 221  
225 222 switch (hdr->protocol) {
226 223 case BSG_PROTOCOL_SCSI: