xfs
[Top] [All Lists]

Re: [PATCH 37/45] drivers: use req op accessor

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: Re: [PATCH 37/45] drivers: use req op accessor
From: Shaun Tancheff <shaun.tancheff@xxxxxxxxxxx>
Date: Thu, 4 Aug 2016 11:32:16 -0500
Authentication-results: seagate.com; dkim=pass header.s="google" header.d=seagate.com
Cc: Mike Christie <mchristi@xxxxxxxxxx>, philipp.reisner@xxxxxxxxxx, dm-devel@xxxxxxxxxx, target-devel@xxxxxxxxxxxxxxx, linux-mtd@xxxxxxxxxxxxxxxxxxx, drbd-dev@xxxxxxxxxxxxxxxx, linux-scsi@xxxxxxxxxxxxxxx, Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx>, linux-ext4 <linux-ext4@xxxxxxxxxxxxxxx>, konrad.wilk@xxxxxxxxxx, XFS Developers <xfs@xxxxxxxxxxx>, linux-raid@xxxxxxxxxxxxxxx, linux-bcache@xxxxxxxxxxxxxxx, linux-block@xxxxxxxxxxxxxxx, osd-dev@xxxxxxxxxxxx, Ross Zwisler <zwisler@xxxxxxxxx>, Jens Axboe <axboe@xxxxxx>, LKML <linux-kernel@xxxxxxxxxxxxxxx>, linux-f2fs-devel@xxxxxxxxxxxxxxxxxxxxx, ocfs2-devel@xxxxxxxxxxxxxx, linux-fsdevel <linux-fsdevel@xxxxxxxxxxxxxxx>, lars.ellenberg@xxxxxxxxxx, linux-btrfs@xxxxxxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=seagate.com; h=mime-version : in-reply-to : references : from : date : message-id : subject : to : cc : content-type; s=s2016050306; bh=EjDDSewwq5ROcPs+EgWTjPwLOZNrH5ar0Pwnowrw6HM=; b=fKMZHmo7Hon/gPSM8p0fAQMvAxukFJWGx8nLywksvXTWlf20bZ23nGbr1ZWhhKlbbXI5 rFQ47baOPGXRToxgEPH2AvTQSHMZXXyhLub84y9sYyC0GKtHAsl07b6jqrFb4CWTgsBR fLMYcNnKUweLBAdYp4lRk5lMl2fqS6lICGG9yipAEArAHC/E+oJx0eOOpzDygtqAq9vF O69Xgf8rm32loEkRNxpx53JxhHiZgwMrw8Q+hA3uvml3lXesNabtHx9cQv9bxV/45wWI re9rWnXYlmrlP7MAbrzMA0g3fTVvR48C1huMJL6adIIEgh7oudC+8tQIckSEmP2ebL2z 7Q==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=seagate.com; h=mime-version : in-reply-to : references : from : date : message-id : subject : to : cc : content-type; s=proofpoint; bh=EjDDSewwq5ROcPs+EgWTjPwLOZNrH5ar0Pwnowrw6HM=; b=Y9GJbm/QrnzVr1P14i7HFGTd7GwftuoGHsIefuIsxgSohh/aoIKOSCglSrxP2l5ngMd5 5VM+1JzAKg0nJXUwmQodyUrfoQd9hnb72Nvp8P6OBPLRdh7bz4z17FdEQOV9BTl6MGZJ Jte4WW8BZQY+1X0vHqnNsXkuL76r0X6/+puivKCh3tugUTpvim7AC//BOkQEFmmGI72W yingpSOBuUNnQUF1KUazvLx3hiadnD9O6bx1mkCGsp4IrH0FJOrBeQ9BbVLtQFw7d0VM be3vO90SC84xsCEqQrIxeM1Ma8GAEg09Z5RU7M9v3x2zTYzJ5PFaAmzYz+qgVFeAYdsj LA==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seagate.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=pujnIOPYvg/trn0pa2wEfdI7pQ3GHRqmDWBGrusLH1o=; b=aHIf5aKV71GHxaU4MswzJ2IHOXzm2rlOyNF53O7Iv0erJZqyBqFldN4sGa76QiUqYA S6LHpkZ9wqsMT9T+Jp9WpCk42PG9RjliDT4wVLxK9T/3VI6vB7uGE9QomeDyqiYPg3XG km/E5dQPRC+omdgHbPTSEleicKxFUTgt8Ka3bp47Ustc9Y0WlBnlGmScm6httbliCl8C JC2MKAAu1PXEPKB2NU3cLzas4o8Uyp3oFKk80lyKIXlpJEqcxLJJ1LevftS56Y4iIuOV DUEfIucO35hlPH/CCTiKjKPinS5vsKxjrcExbyKGg4RIUvTCiGhrNhCTXlAS31ytRFF2 /OsQ==
In-reply-to: <20160804154622.GB15656@xxxxxxxxxxxxx>
References: <1465155145-10812-1-git-send-email-mchristi@xxxxxxxxxx> <1465155145-10812-38-git-send-email-mchristi@xxxxxxxxxx> <CAOxpaSUMsgfTYsL0bL6VCnwxz7bpgpKO-ZfC5J8dFG9PN-hzvg@xxxxxxxxxxxxxx> <87fbe31f-27b3-ff7a-e381-34fc1aad337e@xxxxxxxxxx> <CAJVOszAd9Eu88P2=QoNVArd0jwDH7KRe=OB82tCNMpjfv9B4KA@xxxxxxxxxxxxxx> <20160804154622.GB15656@xxxxxxxxxxxxx>
On Thu, Aug 4, 2016 at 10:46 AM, Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
> On Wed, Aug 03, 2016 at 07:30:29PM -0500, Shaun Tancheff wrote:
>> I think the translation in loop.c is suspicious here:
>>
>>     "if use DIO && not (a flush_flag or discard_flag)"
>> should translate to:
>>     "if use DIO && not ((a flush_flag) || op == discard)"
>>
>> But in the patch I read:
>>     "if use DIO && ((not a flush_flag) || op == discard)
>>
>> Which would have DIO && discards follow the AIO path?
>
> Indeed.  Sorry for missing out on your patch, I just sent a fix
> in reply to Dave's other report earlier which is pretty similar to
> yours.

No worries. I prefer your switch to a an if conditional here.

-- 
Shaun Tancheff

<Prev in Thread] Current Thread [Next in Thread>