lkml.org 
[lkml]   [2010]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 1/6] block: push down BKL into .locked_ioctl
    Date
    On Wednesday 07 July 2010, Christoph Hellwig wrote:
    >
    > Looking at this again I don't like the foo_unlock_ioctl naming you're
    > adding. Just rename the existing ioctl routines to foo_locked_ioctl
    > or move the lock_kernel/unlock_kernel calls into the function, which
    > would be even better.

    Good point. I followed the naming that I used for the file_operations
    conversion, but since the block_device_operations don't use .unlocked_ioctl,
    the naming you suggested is better.

    I've now changed the sr.c and sd.c to use include the lock_kernel() call
    directly in their ioctl functions. For the various floppy drivers, I'd
    prefer using separate wrappers because these drivers are mostly legacy
    and any subtle bugs introduced could probably go unnoticed for years.

    As I mentioned to Sam, I'm more confident with the wrapper than rewriting
    a longish function that I can't test.

    I also now changed the i2o_block driver ioctl function but split that out
    into a separate patch, since I found two more existing issues with
    that function that I'm addressing at the same time.

    Arnd


    \
     
     \ /
      Last update: 2010-07-07 15:31    [W:0.038 / U:30.360 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site