]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: DAX request to dequeue half of a long CCB should not succeed
authorSanath Kumar <sanath.s.kumar@oracle.com>
Wed, 5 Apr 2017 04:56:49 +0000 (23:56 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 24 Apr 2017 04:43:27 +0000 (21:43 -0700)
commitd572289a17562f78a0ecb91e8733b79eaf76b01e
treec3b67b1dd6422bef868368cda326810027a1b061
parent3577f103983d53ed6b7b44e3d199582273946c71
sparc64: DAX request to dequeue half of a long CCB should not succeed

Orabug: 25827254

When a dequeue call is made to the driver such that the last CCB in the
request is the first half of a long ccb, the driver does not report an
error and releases the BIP buffer for the CCBs dequeued up until then.
This was detected by a ioctl_test23 written by Stanislav specifically to
validate the above scenario.

This bug fix addresses both the above issues.

Reviewed-by: Rob Gardner <rob.gardner@oracle.com>
Signed-off-by: Sanath Kumar <sanath.s.kumar@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/dax/dax_main.c