diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2015-02-27 21:44:38 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-02-27 22:53:32 +0300 |
commit | e5db29806b99ce2b2640d2e4d4fcb983cea115c5 (patch) | |
tree | f47c949fa4386f30b9b66e5f7d9acc42c9125b44 /net/packet/af_packet.c | |
parent | 09ee96b21456883e108c3b00597bb37ec512151b (diff) | |
download | linux-e5db29806b99ce2b2640d2e4d4fcb983cea115c5.tar.xz |
dm io: deal with wandering queue limits when handling REQ_DISCARD and REQ_WRITE_SAME
Since it's possible for the discard and write same queue limits to
change while the upper level command is being sliced and diced, fix up
both of them (a) to reject IO if the special command is unsupported at
the start of the function and (b) read the limits once and let the
commands error out on their own if the status happens to change.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'net/packet/af_packet.c')
0 files changed, 0 insertions, 0 deletions