Files
Centos-kernel-stream-9/include/linux/bsg.h
T
Ming Lei c25ef47e2a scsi: replace the fmode_t argument to ->sg_io_fn with a simple bool
JIRA: https://issues.redhat.com/browse/RHEL-1516
Conflicts: context difference, since scsi subsystem doesn't sync with upstream,
        especially the following big changes:
        ce70fd9a551a scsi: core: Remove the cmd field from struct scsi_request
        [PATCH v5 00/49] Remove the SCSI pointer from struct scsi_cmnd

commit 1991299e49fa58c3ba7e91599932f84bf537d592
Author: Christoph Hellwig <hch@lst.de>
Date:   Thu Jun 8 13:02:48 2023 +0200

    scsi: replace the fmode_t argument to ->sg_io_fn with a simple bool

    Instead of passing a fmode_t and only checking it for FMODE_WRITE, pass
    a bool open_for_write to prepare for callers that won't have the fmode_t.

    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
    Reviewed-by: Hannes Reinecke <hare@suse.de>
    Acked-by: Christian Brauner <brauner@kernel.org>
    Link: https://lore.kernel.org/r/20230608110258.189493-21-hch@lst.de
    Signed-off-by: Jens Axboe <axboe@kernel.dk>

Signed-off-by: Ming Lei <ming.lei@redhat.com>
2023-09-18 17:59:17 +08:00

21 lines
526 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_BSG_H
#define _LINUX_BSG_H
#include <uapi/linux/bsg.h>
#include <linux/rh_kabi.h>
struct bsg_device;
struct device;
struct request_queue;
typedef int (bsg_sg_io_fn)(struct request_queue *, struct sg_io_v4 *hdr,
bool open_for_write, unsigned int timeout);
struct bsg_device *bsg_register_queue(struct request_queue *q,
struct device *parent, const char *name,
bsg_sg_io_fn *sg_io_fn);
void bsg_unregister_queue(struct bsg_device *bcd);
#endif /* _LINUX_BSG_H */