Project

General

Profile

Actions

Bug #2042

closed

blkdev should not discard bd->d_maxxfer

Added by Alexey Zaytsev over 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Category:
driver - device drivers
Start date:
2012-01-28
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

blkdev calculates bd->d_maxxfer parameter based on the user's dma attrs, or hard-codes it to 1M in case DMA is not used. Then it just discards the value, and uses whatever the user set in bd->d_ops.o_drive_info().

Fix: Only use the user's supplied drive.d_maxxfer as an upper bound for bd->d_maxxfer. Also, ignore it if it's zero (the user did not set it).

Actions #1

Updated by Alexey Zaytsev almost 9 years ago

  • Subject changed from blkdev should not discard bd->d_maxxfer. to blkdev should not discard bd->d_maxxfer
Actions #2

Updated by Alexey Zaytsev almost 9 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF